mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 06:32:09 +00:00
You can now assign and unassign library references
This commit is contained in:
@@ -109,3 +109,17 @@ class TestEditLibraryReference:
|
||||
library.get_active_library().should_be_called().will_return("library")
|
||||
library.import_references("library").should_be_called()
|
||||
subject.edit_library_reference(ifc, library)
|
||||
|
||||
|
||||
class TestAssignLibraryReference:
|
||||
def test_run(self, ifc):
|
||||
ifc.get_entity("obj").should_be_called().will_return("product")
|
||||
ifc.run("library.assign_reference", product="product", reference="reference").should_be_called()
|
||||
subject.assign_library_reference(ifc, obj="obj", reference="reference")
|
||||
|
||||
|
||||
class TestUnassignLibraryReference:
|
||||
def test_run(self, ifc):
|
||||
ifc.get_entity("obj").should_be_called().will_return("product")
|
||||
ifc.run("library.unassign_reference", product="product", reference="reference").should_be_called()
|
||||
subject.unassign_library_reference(ifc, obj="obj", reference="reference")
|
||||
|
||||
Reference in New Issue
Block a user