Skip to content

Commit f493e06

Browse files
committed
refactor odafc tests
1 parent 3bf61c4 commit f493e06

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

integration_tests/test_odafc.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,17 @@ def doc(self):
8888
return dxf
8989

9090
def test_export_dwg(self, tmp_path, doc):
91-
dwg_path = tmp_path / "r2013.dwg"
91+
dwg_path = tmp_path / "r2013_1.dwg"
92+
assert dwg_path.exists() is False
93+
9294
odafc.export_dwg(doc, str(dwg_path), "R2013")
9395
assert dwg_path.exists() is True
9496

9597
def test_read_dwg(self, tmp_path, doc):
96-
dwg_path = tmp_path / "r2013.dwg"
98+
dwg_path = tmp_path / "r2013_2.dwg"
99+
assert dwg_path.exists() is False
97100
odafc.export_dwg(doc, str(dwg_path), "R2013")
101+
98102
loaded_doc = odafc.readfile(str(dwg_path))
99103
assert loaded_doc.acad_release == "R2013"
100104

0 commit comments

Comments
 (0)