Skip to content

Commit

Permalink
XFail test since SDF stereochemistry is now preserved. [ref #261]
Browse files Browse the repository at this point in the history
  • Loading branch information
lohedges committed Dec 2, 2024
1 parent 3720ab9 commit 88646ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/convert/test_rdkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
[
"C1CCCCC1",
"C",
"OCC(O)C(O)C(O)C(O)CO",
"OC[C@H](O)[C@H](O)[C@@H](O)[C@@H](O)CO",
"C[C@H](N)C(=O)O", # L-alanine
"C[C@@H](N)C(=O)O", # D-alanine
],
Expand Down Expand Up @@ -118,10 +118,13 @@ def test_rdkit_returns_null():
"rdkit" not in sr.convert.supported_formats(),
reason="rdkit support is not available",
)
@pytest.mark.xfail(reason="SMILES now mismatches since SDF stereochemistry is preserved")
def test_rdkit_infer_bonds(ejm55_sdf, ejm55_gro):
sdf = ejm55_sdf[0].molecule()
gro = ejm55_gro["not (protein or water)"].molecule()

from rdkit import Chem

assert sdf.smiles() == gro.smiles()

match_sdf = sdf["smarts [NX3][CX3](=[OX1])[#6]"]
Expand Down

0 comments on commit 88646ff

Please sign in to comment.