File: test_gene.py

package info (click to toggle)
python-cobra 0.26.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 13,284 kB
  • sloc: python: 14,670; xml: 12,841; makefile: 138; sh: 32
file content (16 lines) | stat: -rw-r--r-- 309 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""Test functions of gene.py ."""


from cobra.core import Model


def test_repr_html_(model: Model) -> None:
    """Test HTML represenation is correct for a gene.

    Parameters
    ----------
    model : cobra.Model
        The textbook model.

    """
    assert "<table>" in model.genes[0]._repr_html_()