See #3581. Fix failing IOS tests.

This commit is contained in:
Dion Moult
2023-08-24 22:12:30 +10:00
parent 50d0d16351
commit 1c016c4212
4 changed files with 3 additions and 4 deletions
@@ -50,9 +50,7 @@ class Usecase:
for rel in self.settings["information"].IsPointer or []:
for information in rel.RelatedDocuments:
ifcopenshell.api.run("document.remove_information", self.file, information=information)
self.file.remove(rel)
# remove IfcDocumentInformationRelationship so it won't become invalid
for rel in self.settings["information"].IsPointedTo or []:
if rel.RelatedDocuments == (self.settings["information"],):
self.file.remove(rel)