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

Function test_save_keep_open

src/bcf/tests/v2/test_bcf_xml.py:89–95  ·  view source on GitHub ↗
(build_sample)

Source from the content-addressed store, hash-verified

87
88
89def test_save_keep_open(build_sample) -> None:
90 bcf, _ = build_sample
91 with TemporaryDirectory() as tmp_dir:
92 file_path = Path(tmp_dir) / "test.bcf"
93 bcf.save(file_path, keep_open=True)
94 assert bcf._zip_file is not None
95 bcf._zip_file.close()
96
97
98def test_massive_bcf(xml_handler) -> None:

Callers

nothing calls this directly

Calls 2

saveMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected