mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-18 19:30:25 +00:00
fix: Remove the "ifc_patch_args" property (#5095)
* fix: Remove the "ifc_patch_args" property This property has been removed, because patch recipes with arguments other than the boilerplate arguments automatically display these arguments as properties, and patch recipes that don't allow more arguments than the boilerplate arguments fail, if "ifc_patch_args" is not None or "[]". The test cases have been adjusted accordingly. * style: run the black formatter to fix failing checks
This commit is contained in:
@@ -6,8 +6,14 @@ Scenario: Execute IFC Patch - file in memory
|
||||
And I set "scene.BIMPatchProperties.ifc_patch_recipes" to "OffsetObjectPlacements"
|
||||
And I set "scene.BIMPatchProperties.should_load_from_memory" to "True"
|
||||
And I set "scene.BIMPatchProperties.ifc_patch_output" to "{cwd}/test/files/temp/basic-patched.ifc"
|
||||
And I set "scene.BIMPatchProperties.ifc_patch_args" to "[123454321,0,0,0]"
|
||||
When I press "bim.execute_ifc_patch(use_json_for_args=True)"
|
||||
And I set "scene.BIMPatchProperties.ifc_patch_args_attr['X'].string_value" to "123454321"
|
||||
And I set "scene.BIMPatchProperties.ifc_patch_args_attr['Y'].string_value" to "0"
|
||||
And I set "scene.BIMPatchProperties.ifc_patch_args_attr['Z'].string_value" to "0"
|
||||
And I set "scene.BIMPatchProperties.ifc_patch_args_attr['Should Rotate First'].bool_value" to "True"
|
||||
And I set "scene.BIMPatchProperties.ifc_patch_args_attr['Ax'].string_value" to "0"
|
||||
And I set "scene.BIMPatchProperties.ifc_patch_args_attr['Ay'].string_value" to "0"
|
||||
And I set "scene.BIMPatchProperties.ifc_patch_args_attr['Az'].string_value" to "0"
|
||||
When I press "bim.execute_ifc_patch()"
|
||||
Then the file "{cwd}/test/files/temp/basic-patched.ifc" should contain "123454321"
|
||||
|
||||
Scenario: Execute IFC Patch - file from disk
|
||||
@@ -15,8 +21,14 @@ Scenario: Execute IFC Patch - file from disk
|
||||
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/temp/basic-patched.ifc"
|
||||
And I set "scene.BIMPatchProperties.ifc_patch_args" to "[123454321,0,0,0]"
|
||||
When I press "bim.execute_ifc_patch(use_json_for_args=True)"
|
||||
And I set "scene.BIMPatchProperties.ifc_patch_args_attr['X'].string_value" to "123454321"
|
||||
And I set "scene.BIMPatchProperties.ifc_patch_args_attr['Y'].string_value" to "0"
|
||||
And I set "scene.BIMPatchProperties.ifc_patch_args_attr['Z'].string_value" to "0"
|
||||
And I set "scene.BIMPatchProperties.ifc_patch_args_attr['Should Rotate First'].bool_value" to "True"
|
||||
And I set "scene.BIMPatchProperties.ifc_patch_args_attr['Ax'].string_value" to "0"
|
||||
And I set "scene.BIMPatchProperties.ifc_patch_args_attr['Ay'].string_value" to "0"
|
||||
And I set "scene.BIMPatchProperties.ifc_patch_args_attr['Az'].string_value" to "0"
|
||||
When I press "bim.execute_ifc_patch()"
|
||||
Then the file "{cwd}/test/files/temp/basic-patched.ifc" should contain "123454321"
|
||||
|
||||
Scenario: Run migrate patch
|
||||
|
||||
Reference in New Issue
Block a user