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

Function model_file

src/ifcmcp/tests/conftest.py:47–51  ·  view source on GitHub ↗

Write the model fixture to a temp file and return the path.

(model, tmp_path)

Source from the content-addressed store, hash-verified

45
46@pytest.fixture
47def model_file(model, tmp_path):
48 """Write the model fixture to a temp file and return the path."""
49 path = tmp_path / "test.ifc"
50 model.write(str(path))
51 return str(path)
52
53
54@pytest.fixture

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected