MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / saving_sample_test_files

Function saving_sample_test_files

src/bonsai/test/bim/test_feature.py:1901–1905  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1899@when(parsers.parse("I save sample test files"))
1900@then(parsers.parse("I save sample test files"))
1901def saving_sample_test_files() -> None:
1902 filepath = TMP / "sample_test_file"
1903 print(f"Saved to {filepath}")
1904 bpy.ops.bim.save_project(filepath=filepath.with_suffix(".ifc").__str__(), should_save_as=True)
1905 bpy.ops.wm.save_as_mainfile(filepath=filepath.with_suffix(".blend").__str__())
1906
1907
1908@given(parsers.parse("I load test blend file"))

Calls 3

printFunction · 0.85
save_projectMethod · 0.45
__str__Method · 0.45

Tested by

no test coverage detected