BIMTester UI updated to new Gherkin syntax conventions

This commit is contained in:
Dion Moult
2020-07-14 18:22:32 +10:00
parent 98ed21a1e2
commit 1222716e16
2 changed files with 11 additions and 7 deletions
+6 -2
View File
@@ -130,13 +130,17 @@ def get_subcontext(identifier, type, target_view):
# Custom MicroMVD
@step('The element {id} is an {ifc_class} only')
def step_impl(context, id, ifc_class):
assert IfcFile.get().by_id(id).is_a() == ifc_class
@step('the element {id} is an {ifc_class}')
@step('The element {id} is an {ifc_class}')
def step_impl(context, id, ifc_class):
assert IfcFile.get().by_id(id).is_a(ifc_class)
@step('the element {id} should not exist because {reason}')
@step('The element {id} should not exist because {reason}')
def step_impl(context, id, reason):
assert not IfcFile.get().by_id(id)