Fix bug where drawing objects could be added to the wrong context.

This commit is contained in:
Dion Moult
2022-01-30 15:09:54 +11:00
parent 96179db7ad
commit 74174b1e09
4 changed files with 42 additions and 7 deletions
+10
View File
@@ -149,6 +149,16 @@ class TestExportTextLiteralAttributes(NewFile):
}
class TestGetBodyContext(NewFile):
def test_run(self):
ifc = ifcopenshell.file()
context = ifc.createIfcGeometricRepresentationSubContext(
ContextType="Model", ContextIdentifier="Body", TargetView="MODEL_VIEW"
)
tool.Ifc.set(ifc)
assert subject.get_body_context() == context
class TestGetSheetFilename(NewFile):
def test_run(self):
ifc = ifcopenshell.file()