Skip to content

Commit

Permalink
re-enable deactivated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Eloy Felix committed Sep 11, 2024
1 parent 76dc0e5 commit 742c1f8
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions libRDChEBI/test/test_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,21 +90,21 @@ def test_netCharge(self):
assert get_net_charge(mol["molfile"]) == mol["net_charge"], f"ChEBI:{key}"


# class TestPolymers:
class TestPolymers:

# def test_molFormula(self):
# for key, mol in polymers.items():
# if mol["mol_formula"] is not None:
# assert (
# get_polymer_formula(mol["molfile"]) == mol["mol_formula"]
# ), f"ChEBI:{key}"
def test_molFormula(self):
for key, mol in polymers.items():
if mol["mol_formula"] is not None:
assert (
get_polymer_formula(mol["molfile"]) == mol["mol_formula"]
), f"ChEBI:{key}"

# def test_netCharge(self):
# for key, mol in polymers.items():
# if mol["net_charge"] is not None:
# assert (
# get_net_charge(mol["molfile"]) == mol["net_charge"]
# ), f"ChEBI:{key}"
def test_netCharge(self):
for key, mol in polymers.items():
if mol["net_charge"] is not None:
assert (
get_net_charge(mol["molfile"]) == mol["net_charge"]
), f"ChEBI:{key}"


class TestMixtures:
Expand Down Expand Up @@ -167,21 +167,21 @@ def test_netCharge(self):
), f"ChEBI:{key}"


# class TestExtraPolymers:
class TestExtraPolymers:

# def test_molFormula(self):
# for key, mol in extra_polymers.items():
# if mol["mol_formula"] is not None:
# assert (
# get_polymer_formula(mol["molfile"]) == mol["mol_formula"]
# ), f"ChEBI:{key}"
def test_molFormula(self):
for key, mol in extra_polymers.items():
if mol["mol_formula"] is not None:
assert (
get_polymer_formula(mol["molfile"]) == mol["mol_formula"]
), f"ChEBI:{key}"

# def test_netCharge(self):
# for key, mol in extra_polymers.items():
# if mol["net_charge"] is not None:
# assert (
# get_net_charge(mol["molfile"]) == mol["net_charge"]
# ), f"ChEBI:{key}"
def test_netCharge(self):
for key, mol in extra_polymers.items():
if mol["net_charge"] is not None:
assert (
get_net_charge(mol["molfile"]) == mol["net_charge"]
), f"ChEBI:{key}"


class TestIsotopes:
Expand Down

0 comments on commit 742c1f8

Please sign in to comment.