From 9728c4d345f8949ef763bdc69dfffa15bce2a9e7 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Thu, 18 Nov 2021 18:16:37 +0100 Subject: [PATCH] bimtester: features psets, use quots the same way as in all other features --- .../bimtester/features/steps/attributes_psets/de.py | 7 ++++--- .../bimtester/features/steps/attributes_psets/en.py | 5 +++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/ifcbimtester/bimtester/features/steps/attributes_psets/de.py b/src/ifcbimtester/bimtester/features/steps/attributes_psets/de.py index b9080143e8..e2f6516e4f 100644 --- a/src/ifcbimtester/bimtester/features/steps/attributes_psets/de.py +++ b/src/ifcbimtester/bimtester/features/steps/attributes_psets/de.py @@ -1,8 +1,9 @@ -from behave import step, use_step_matcher +from behave import step +from behave import use_step_matcher use_step_matcher("parse") -@step("An alle {ifc_class} Bauteile ist im PSet {pset} das Attribut {aproperty} angehängt") +@step('An alle "{ifc_class}" Bauteile ist im PSet "{pset}" das Attribut "{aproperty}" angehängt') def step_impl(context, ifc_class, aproperty, pset): - context.execute_steps(f"all {ifc_class} elements have an {aproperty} property in the {pset} pset") + context.execute_steps(f'* All "{ifc_class}" elements have an "{aproperty}" property in the "{pset}" pset') diff --git a/src/ifcbimtester/bimtester/features/steps/attributes_psets/en.py b/src/ifcbimtester/bimtester/features/steps/attributes_psets/en.py index 3a3f5fb522..ecae7717e1 100644 --- a/src/ifcbimtester/bimtester/features/steps/attributes_psets/en.py +++ b/src/ifcbimtester/bimtester/features/steps/attributes_psets/en.py @@ -1,11 +1,12 @@ -from behave import step, use_step_matcher +from behave import step +from behave import use_step_matcher from bimtester.ifc import IfcStore from bimtester.util import assert_elements from bimtester.lang import _ -@step("All {ifc_class} elements have an {aproperty} property in the {pset} pset") +@step('All "{ifc_class}" elements have an "{aproperty}" property in the "{pset}" pset') def step_impl(context, ifc_class, aproperty, pset): eleclass_has_property_in_pset( context,