Skip to content

Commit

Permalink
fix label name in test
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjonesBSU committed Jan 30, 2025
1 parent 1c0d5ea commit a423fa0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions flowermd/tests/base/test_molecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ def test_polymer_different_chain_lengths(self, dimethylether_smiles):
bond_orientation=[None, None],
)
assert polymer.n_particles == 53
assert len(polymer.molecules[0].labels["Compound"]) == 3
assert len(polymer.molecules[1].labels["Compound"]) == 4
assert len(polymer.molecules[0].labels["all-monomers"]) == 3
assert len(polymer.molecules[1].labels["all-monomers"]) == 4

def test_polymer_different_num_mol(self, dimethylether_smiles):
polymer = Polymer(
Expand All @@ -220,9 +220,9 @@ def test_polymer_different_num_mol(self, dimethylether_smiles):
bond_orientation=[None, None],
)
assert polymer.n_particles == 55
assert len(polymer.molecules[0].labels["Compound"]) == 3
assert len(polymer.molecules[1].labels["Compound"]) == 2
assert len(polymer.molecules[2].labels["Compound"]) == 2
assert len(polymer.molecules[0].labels["all-monomers"]) == 3
assert len(polymer.molecules[1].labels["all-monomers"]) == 2
assert len(polymer.molecules[2].labels["all-monomers"]) == 2

def test_polymer_unequal_num_mol_length(self, dimethylether_smiles):
with pytest.raises(ValueError):
Expand Down

0 comments on commit a423fa0

Please sign in to comment.