From 8e78ed332fb4e9ba4c6d5d558cdb5280219029b0 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Mon, 21 Dec 2020 16:05:06 +0100 Subject: [PATCH] bimtester: steps, move project test into project test module --- src/ifcbimtester/bimtester/features/steps/project_setup.py | 6 ++++++ src/ifcbimtester/bimtester/features/steps/steps.py | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ifcbimtester/bimtester/features/steps/project_setup.py b/src/ifcbimtester/bimtester/features/steps/project_setup.py index 9cb8af8732..8fbf128d52 100644 --- a/src/ifcbimtester/bimtester/features/steps/project_setup.py +++ b/src/ifcbimtester/bimtester/features/steps/project_setup.py @@ -67,3 +67,9 @@ def get_subcontext(identifier, type, target_view): assert False, "The subcontext with identifier {}, type {}, and target view {} could not be found".format( identifier, type, target_view ) + + +@step('the project has a {attribute_name} attribute with a value of "{attribute_value}"') +def step_impl(context, attribute_name, attribute_value): + project = IfcFile.get().by_type("IfcProject")[0] + assert getattr(project, attribute_name) == attribute_value diff --git a/src/ifcbimtester/bimtester/features/steps/steps.py b/src/ifcbimtester/bimtester/features/steps/steps.py index 86ee12d80f..583ee0c6d4 100644 --- a/src/ifcbimtester/bimtester/features/steps/steps.py +++ b/src/ifcbimtester/bimtester/features/steps/steps.py @@ -109,12 +109,6 @@ def step_impl(context, ifc_class, qto_name, quantity_name): use_step_matcher("parse") -@step('the project has a {attribute_name} attribute with a value of "{attribute_value}"') -def step_impl(context, attribute_name, attribute_value): - project = IfcFile.get().by_type("IfcProject")[0] - assert getattr(project, attribute_name) == attribute_value - - @step('there is an {ifc_class} element with a {attribute_name} attribute with a value of "{attribute_value}"') def step_impl(context, ifc_class, attribute_name, attribute_value): elements = IfcFile.get().by_type(ifc_class)