Files
IfcOpenShell/src/blenderbim/test/bim/feature/patch.feature
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
868 B
Gherkin
Raw Normal View History

2021-10-21 01:10:22 +02:00
@patch
Feature: Patch
Scenario: Execute IFC Patch
Given an empty IFC project
And I set "scene.BIMPatchProperties.ifc_patch_recipes" to "OffsetObjectPlacements"
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]"
2023-01-30 11:27:38 +11:00
When I press "bim.execute_ifc_patch(use_json_for_args=True)"
2021-10-21 01:10:22 +02:00
Then the file "{cwd}/test/files/basic-patched.ifc" should contain "123454321"
Scenario: Run migrate patch
Given an empty Blender session
When I press "bim.run_migrate_patch(infile='{cwd}/test/files/ifc2x3.ifc', outfile='{cwd}/test/files/ifc2x3-migrated.ifc', schema='IFC4')"
Then the file "{cwd}/test/files/ifc2x3-migrated.ifc" should contain "IFC4"