Skip to content

Commit

Permalink
epam2746 add regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
jblack-mestre committed Feb 5, 2025
1 parent de1d3e2 commit 391c363
Show file tree
Hide file tree
Showing 6 changed files with 401 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/tests/integration/ref/rendering/basic.py.out
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ bond-length-options-3.png rendering status: OK
smart-layout-crown.png rendering status: OK
****** Nameless S-Group *****
sa-mono.png rendering status: OK
issue 2746 incorrect phosphorus valence
incorrect_phosphorus_valence_2746.png rendering status: OK
10 changes: 10 additions & 0 deletions api/tests/integration/tests/rendering/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,16 @@
renderer.renderToFile(mol, joinPathPy("out/sa-mono.png", __file__))
print(checkImageSimilarity("sa-mono.png"))

print("issue 2746 incorrect phosphorus valence")
indigo.resetOptions()
indigo.setOption("render-output-format", "png")
fname = "incorrect_phosphorus_valence_2746"
png_fname = fname + ".png"
cdxml_fname = joinPathPy("molecules/%s.cdxml" % fname, __file__)
mol = indigo.loadMoleculeFromFile(cdxml_fname)
renderer.renderToFile(mol, joinPathPy("out/" + png_fname, __file__))
print(checkImageSimilarity(png_fname))

if isIronPython():
renderer.Dispose()
indigo.Dispose()
Loading

0 comments on commit 391c363

Please sign in to comment.