Write the model fixture to a temp file and return the path.
(model, tmp_path)
| 37 | |
| 38 | @pytest.fixture |
| 39 | def model_file(model, tmp_path): |
| 40 | """Write the model fixture to a temp file and return the path.""" |
| 41 | path = tmp_path / "test.ifc" |
| 42 | model.write(str(path)) |
| 43 | return str(path) |
| 44 | |
| 45 | |
| 46 | @pytest.fixture |