(self)
| 75 | |
| 76 | class TestCreateSvgSheet(NewFile): |
| 77 | def test_run(self): |
| 78 | ifc = ifcopenshell.file() |
| 79 | ifcopenshell.api.root.create_entity(ifc, ifc_class="IfcProject") |
| 80 | tool.Ifc.set(ifc) |
| 81 | ifc_path = Path("test/files/temp/test.ifc").absolute() |
| 82 | bpy.ops.bim.save_project(filepath=str(ifc_path), should_save_as=True) |
| 83 | document = ifc.createIfcDocumentInformation( |
| 84 | Identification="X", |
| 85 | Name="FOOBAR", |
| 86 | Scope="SHEET", |
| 87 | Location=(ifc_path.parent / "layouts" / "X - FOOBAR.svg").as_posix(), |
| 88 | ) |
| 89 | uri = subject.create_svg_sheet(document, "A1") |
| 90 | assert uri.endswith(".svg") |
| 91 | assert os.path.isfile(uri) |
| 92 | |
| 93 | |
| 94 | class TestDeleteCollection(NewFile): |
nothing calls this directly
no test coverage detected