mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Inherited and overridden classification references per system is now supported
This commit is contained in:
@@ -71,7 +71,10 @@ class TestGetReferences(test.bootstrap.IFC4):
|
||||
reference=reference2,
|
||||
classification=classification,
|
||||
)
|
||||
assert subject.get_references(element) == set(self.file.by_type("IfcClassificationReference"))
|
||||
reference1 = [r for r in self.file.by_type("IfcClassificationReference") if r.Identification == "1"][0]
|
||||
reference2 = [r for r in self.file.by_type("IfcClassificationReference") if r.Identification == "2"][0]
|
||||
assert subject.get_references(element_type) == set([reference2])
|
||||
assert subject.get_references(element) == set([reference1])
|
||||
|
||||
def test_getting_direct_classifications(self):
|
||||
library = ifcopenshell.file()
|
||||
|
||||
Reference in New Issue
Block a user