Skip to content

Commit

Permalink
Return decoded result
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCBrammer committed Oct 15, 2024
1 parent f33194a commit 64ce7ce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions INCHI-1-TEST/tests/test_executable/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def _run_inchi_exe(
return subprocess.run(
[exe_path, molfile_path, args],
capture_output=True,
text=True,
)

return _run_inchi_exe
2 changes: 1 addition & 1 deletion INCHI-1-TEST/tests/test_executable/test_github_40.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ def molfile():
def test_spiro_compound_chiral(molfile, run_inchi_exe):
result = run_inchi_exe(molfile)

assert "Warning (Not chiral) structure #1." not in result.stderr.decode()
assert "Warning (Not chiral) structure #1." not in result.stderr
4 changes: 2 additions & 2 deletions INCHI-1-TEST/tests/test_executable/test_github_52.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_empty_bondblock(molfile_empty_bondblock, run_inchi_exe):

assert (
"Error 71 (no InChI; Error: No V3000 CTAB end marker) inp structure #1."
not in result.stderr.decode()
not in result.stderr
)


Expand All @@ -53,5 +53,5 @@ def test_no_bondblock(molfile_no_bondblock, run_inchi_exe):

assert (
"Error 71 (no InChI; Error: No V3000 CTAB end marker) inp structure #1."
not in result.stderr.decode()
not in result.stderr
)

0 comments on commit 64ce7ce

Please sign in to comment.