Fix bug in IFC2X3 where updating style colours didn't work.

This commit is contained in:
Dion Moult
2021-11-10 16:45:16 +11:00
parent 0dac56dbdf
commit a7b3b5261f
5 changed files with 24 additions and 3 deletions
@@ -1,12 +1,15 @@
import pytest
import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.owner.settings
class IFC4:
@pytest.fixture(autouse=True)
def setup(self):
self.file = ifcopenshell.api.run("project.create_file")
ifcopenshell.api.owner.settings.get_user = lambda ifc: (ifc.by_type("IfcPersonAndOrganization") or [None])[0]
ifcopenshell.api.owner.settings.get_application = lambda ifc: (ifc.by_type("IfcApplication") or [None])[0]
class IFC2X3: