Skip to content

Commit

Permalink
#2313 Indigo functions doesn't work if ambiguous monomer present on …
Browse files Browse the repository at this point in the history
…the canvas

Fix molecule_json_saver. Add UT.
  • Loading branch information
AliaksandrDziarkach committed Dec 16, 2024
1 parent 241480e commit 8958508
Show file tree
Hide file tree
Showing 5 changed files with 1,107 additions and 4 deletions.
6 changes: 4 additions & 2 deletions api/tests/integration/ref/formats/ket_to_ket.py.out
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
*** KET to KET ***
images.ket:SUCCEED
monomer_shape.ket molecule: SUCCEED
monomer_shape.ket molecule: SUCCEED
ambiguous_monomer.ket mol: SUCCEED
ambiguous_monomer.ket doc: SUCCEED
monomer_shape.ket mol: SUCCEED
monomer_shape.ket doc: SUCCEED
3 changes: 2 additions & 1 deletion api/tests/integration/tests/formats/ket_to_ket.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def check_res(filename, format, ket_ref, ket):
indigo.setOption("json-use-native-precision", True)
files = [
"monomer_shape",
"ambiguous_monomer",
]
formats = {
"mol": indigo.loadMolecule,
Expand All @@ -70,4 +71,4 @@ def check_res(filename, format, ket_ref, ket):
# with open("{}_{}.ket".format(file_path, format), "w") as file:
# file.write(mol.json())
ket = mol.json()
check_res(filename, "molecule", ket_ref, ket)
check_res(filename, format, ket_ref, ket)
Loading

0 comments on commit 8958508

Please sign in to comment.