Skip to content

Commit b6f80cd

Browse files
authored
28/04/2024 Update.
* Updated test file.
1 parent 0b96404 commit b6f80cd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_read_file.py

+5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1+
import os
12
from pathlib import Path
23
from mol2chemfigPy3 import mol2chemfig
34

45

56
cwd = Path(__file__).parent
67

8+
with open(cwd / "phenol.smi", "w") as f:
9+
f.write("C1=CC=C(C=C1)O")
10+
711
def test():
812
target = r"""\chemfig{@{a7}HO-[@{a4-7},,2]@{a4}-[@{a3-4}:300]@{a3}-[@{a2-3}]@{a2}%
913
-[@{a1-2}:60]@{a1}(-[:180,,,,draw=none]\mcfcringle{1.3})-[@{a1-6}:120]@{a6}%
1014
-[@{a5-6}:180]@{a5}(-[@{a4-5}:240])}"""
1115
assert mol2chemfig(cwd / "phenol.smi", "-p", marker="a", inline=True) == target
16+
os.remove(cwd / "phenol.smi")

0 commit comments

Comments
 (0)