Skip to content

Commit 454b6a2

Browse files
committed
adding facets writing to tests for test coverage
1 parent 6028c63 commit 454b6a2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/integration/test_design.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ def test_download_file(modeler: Modeler, tmp_path_factory: pytest.TempPathFactor
12201220
else:
12211221
file_save = tmp_path_factory.mktemp("scdoc_files_save") / "cylinder.scdocx"
12221222

1223-
design.save(file_location=file_save)
1223+
design.save(file_location=file_save, write_body_facets=True)
12241224

12251225
# Check for other exports - Windows backend...
12261226
if not BackendType.is_core_service(modeler.client.backend_type):
@@ -3778,7 +3778,7 @@ def test_vertices(modeler: Modeler, tmp_path_factory: pytest.TempPathFactory):
37783778

37793779
location = tmp_path_factory.mktemp("test_export_to_scdocx")
37803780
file_location = location / f"{design.name}.scdocx"
3781-
design.export_to_scdocx(location)
3781+
design.export_to_scdocx(location, write_body_facets=True)
37823782
assert file_location.exists()
37833783
design_read = modeler.open_file(file_location)
37843784
assert len(design_read.named_selections) == 5

tests/integration/test_design_export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def test_export_to_disco(modeler: Modeler, tmp_path_factory: pytest.TempPathFact
219219
file_location = location / f"{design.name}.dsco"
220220

221221
# Export to dsco
222-
design.export_to_disco(location)
222+
design.export_to_disco(location, write_body_facets=True)
223223

224224
# Check the exported file
225225
assert file_location.exists()

0 commit comments

Comments
 (0)