| 77 | |
| 78 | |
| 79 | def 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 | |
| 94 | def test_bug_2486_a(): |