minor fixes

- error in settings poll message for bim.assign_selected_as_product
- test that drawing.assign_product won't create new assignments for the same product
This commit is contained in:
Andrej730
2023-11-17 12:30:34 +05:00
parent 9fb1986cad
commit 6750dd927c
2 changed files with 2 additions and 1 deletions
@@ -35,4 +35,5 @@ class TestAssignProduct(test.bootstrap.IFC4):
label = self.file.createIfcAnnotation()
ifcopenshell.api.run("drawing.assign_product", self.file, relating_product=wall, related_object=label)
ifcopenshell.api.run("drawing.assign_product", self.file, relating_product=wall, related_object=label)
assert len(wall.ReferencedBy) == 1
assert wall.ReferencedBy[0].RelatedObjects == (label,)