See #1848. Refactor boundary data class.

This commit is contained in:
Dion Moult
2023-01-30 11:27:38 +11:00
parent b939370f2b
commit 044cd6e97b
6 changed files with 71 additions and 42 deletions
@@ -7,7 +7,7 @@ Scenario: Execute IFC Patch
And I set "scene.BIMPatchProperties.ifc_patch_input" to "{cwd}/test/files/basic.ifc"
And I set "scene.BIMPatchProperties.ifc_patch_output" to "{cwd}/test/files/basic-patched.ifc"
And I set "scene.BIMPatchProperties.ifc_patch_args" to "[123454321,0,0,0]"
When I press "bim.execute_ifc_patch"
When I press "bim.execute_ifc_patch(use_json_for_args=True)"
Then the file "{cwd}/test/files/basic-patched.ifc" should contain "123454321"
Scenario: Run migrate patch
+3 -2
View File
@@ -33,7 +33,9 @@ class TestImplementsTool(NewFile):
class TestAddSchemaIdentifier(NewFile):
def test_run(self):
subject.add_schema_identifier(TestLoadExpress().test_run())
cwd = os.path.dirname(os.path.realpath(__file__))
schema = subject.load_express(os.path.join(cwd, "..", "files", "test.exp"))
subject.add_schema_identifier(schema)
assert IfcStore.schema_identifiers[-1] == "IFCROGUE"
@@ -42,7 +44,6 @@ class TestLoadExpress(NewFile):
cwd = os.path.dirname(os.path.realpath(__file__))
schema = subject.load_express(os.path.join(cwd, "..", "files", "test.exp"))
assert schema.schema_name == "IFCROGUE"
return schema
class TestPurgeHdf5Cache(NewFile):