MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / test_bug_2517

Function test_bug_2517

src/ifcopenshell-python/test/test_file_gc.py:79–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77
78
79def test_bug_2517():
80 fixtures = os.path.join(os.path.dirname(__file__), "fixtures")
81 model: ifcopenshell.file
82 library: ifcopenshell.file
83 model = ifcopenshell.open(f"{fixtures}/bug_2517_test2.ifc")
84 library = ifcopenshell.open(f"{fixtures}/bug_2517_lib.ifc")
85 result = model.add(library.by_type("IfcClassification")[0])
86 model.create_entity(
87 "IfcRelAssociatesClassification",
88 GlobalId=ifcopenshell.guid.new(),
89 RelatedObjects=[model.by_type("IfcProject")[0]],
90 RelatingClassification=result,
91 )
92
93
94def test_bug_2486_a():

Callers

nothing calls this directly

Calls 6

openMethod · 0.80
newMethod · 0.80
joinMethod · 0.45
addMethod · 0.45
by_typeMethod · 0.45
create_entityMethod · 0.45

Tested by

no test coverage detected