| 1 |
@unit |
| 2 |
Feature: Unit |
| 3 |
|
| 4 |
Scenario: Assign scene units |
| 5 |
Given an empty IFC project |
| 6 |
When I press "bim.assign_scene_units" |
| 7 |
Then nothing happens |
| 8 |
|
| 9 |
Scenario: Assign unit |
| 10 |
Given an empty IFC project |
| 11 |
And the variable "unit" is "{ifc}.by_type('IfcSIUnit')[0].id()" |
| 12 |
When I press "bim.assign_unit(unit={unit})" |
| 13 |
Then nothing happens |
| 14 |
|
| 15 |
Scenario: Unassign unit |
| 16 |
Given an empty IFC project |
| 17 |
And the variable "unit" is "{ifc}.by_type('IfcSIUnit')[0].id()" |
| 18 |
When I press "bim.unassign_unit(unit={unit})" |
| 19 |
Then nothing happens |
| 20 |
|
| 21 |
Scenario: Load units |
| 22 |
Given an empty IFC project |
| 23 |
When I press "bim.load_units" |
| 24 |
Then nothing happens |
| 25 |
|
| 26 |
Scenario: Disable unit editing UI |
| 27 |
Given an empty IFC project |
| 28 |
And I press "bim.load_units" |
| 29 |
When I press "bim.disable_unit_editing_ui" |
| 30 |
Then nothing happens |
| 31 |
|
| 32 |
Scenario: Remove unit |
| 33 |
Given an empty IFC project |
| 34 |
And the variable "unit" is "{ifc}.by_type('IfcSIUnit')[0].id()" |
| 35 |
When I press "bim.remove_unit(unit={unit})" |
| 36 |
Then nothing happens |
| 37 |
|
| 38 |
Scenario: Add monetary unit |
| 39 |
Given an empty IFC project |
| 40 |
When I press "bim.add_monetary_unit" |
| 41 |
Then nothing happens |
| 42 |
|
| 43 |
Scenario: Add SI unit |
| 44 |
Given an empty IFC project |
| 45 |
When I press "bim.add_si_unit(unit_type='LENGTHUNIT')" |
| 46 |
Then nothing happens |
| 47 |
|
| 48 |
Scenario: Add context dependent unit |
| 49 |
Given an empty IFC project |
| 50 |
When I press "bim.add_context_dependent_unit(name='THINGAMAJIGS', unit_type='LENGTHUNIT')" |
| 51 |
Then nothing happens |
| 52 |
|
| 53 |
Scenario: Add conversion based unit |
| 54 |
Given an empty IFC project |
| 55 |
When I press "bim.add_conversion_based_unit(name='inch')" |
| 56 |
Then nothing happens |
| 57 |
|
| 58 |
Scenario: Add conversion based unit with offset |
| 59 |
Given an empty IFC project |
| 60 |
When I press "bim.add_conversion_based_unit(name='fahrenheit')" |
| 61 |
Then nothing happens |
| 62 |
|
| 63 |
Scenario: Enable editing unit |
| 64 |
Given an empty IFC project |
| 65 |
And the variable "unit" is "{ifc}.by_type('IfcSIUnit')[0].id()" |
| 66 |
When I press "bim.enable_editing_unit(unit={unit})" |
| 67 |
Then nothing happens |
| 68 |
|
| 69 |
Scenario: Disable editing unit |
| 70 |
Given an empty IFC project |
| 71 |
And the variable "unit" is "{ifc}.by_type('IfcSIUnit')[0].id()" |
| 72 |
And I press "bim.enable_editing_unit(unit={unit})" |
| 73 |
When I press "bim.disable_editing_unit" |
| 74 |
Then nothing happens |
| 75 |
|
| 76 |
Scenario: Edit unit |
| 77 |
Given an empty IFC project |
| 78 |
And the variable "unit" is "{ifc}.by_type('IfcSIUnit')[0].id()" |
| 79 |
And I press "bim.enable_editing_unit(unit={unit})" |
| 80 |
When I press "bim.edit_unit(unit={unit})" |
| 81 |
Then nothing happens |