A whole bunch of new usecases for managing IFC library information and references

This commit is contained in:
Dion Moult
2021-11-16 18:30:23 +11:00
parent 41486ba08a
commit 4617d9f234
16 changed files with 246 additions and 0 deletions
@@ -0,0 +1,10 @@
import test.bootstrap
import ifcopenshell.api
class TestAddReference(test.bootstrap.IFC4):
def test_adding_a_reference(self):
library = ifcopenshell.api.run("library.add_library", self.file, name="Name")
reference = ifcopenshell.api.run("library.add_reference", self.file, library=library)
assert reference.is_a("IfcLibraryReference")
assert reference.ReferencedLibrary == library