Fix running of test/tests.py

This commit is contained in:
Thomas Krijnen
2026-01-08 11:49:29 +01:00
parent f5b2358c2e
commit ae79996eb6
8 changed files with 65 additions and 122 deletions
+2
View File
@@ -53,6 +53,8 @@ f2 = ifcopenshell.file(schema=f.schema)
prop2 = f2.add(prop)
assert str(prop) == str(prop2).replace(str(prop2.id()), str(prop.id()))
assert prop2.id() == 1
# Adding the same instance returns the previous copy
assert f2.add(prop) == prop2
# A recursively obtained python dictionary representation
# matches for copied instances as well