Debian Codegraph @

src/ifcbimtester/bimtester/features/steps/attributes_eleclasses/de.py

raw
1 # BIMTester - OpenBIM Auditing Tool
2 # Copyright (C) 2021 Dion Moult <[email protected]>
3 #
4 # This file is part of BIMTester.
5 #
6 # BIMTester is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU Lesser General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # BIMTester is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU Lesser General Public License for more details.
15 #
16 # You should have received a copy of the GNU Lesser General Public License
17 # along with BIMTester. If not, see <http://www.gnu.org/licenses/>.
18
19 from behave import step
20
21
22 @step('Es sind ausschliesslich "{ifc_classes}" Bauteile vorhanden')
23 def step_impl(context, ifc_classes):
24 context.execute_steps(f'* There are exclusively "{ifc_classes}" elements only')
25
26
27 @step('Es sind keine "{ifc_class}" Bauteile vorhanden')
28 def step_impl(context, ifc_class):
29 context.execute_steps(f'* There are no "{ifc_class}" elements')
30
31
32 @step('Aus folgendem Grund gibt es keine "{ifc_class}" Bauteile: {reason}')
33 def step_impl(context, ifc_class, reason):
34 context.execute_steps(f'* There are no "{ifc_class}" elements because "{reason}"')
35
36
37 @step('Alle "{ifc_class}" Bauteilklassenattribute haben einen Wert')
38 def step_impl(context, ifc_class):
39 context.execute_steps(f'* All "{ifc_class}" elements class attributes have a value')
40
41
42 @step('Bei allen "{ifc_class}" Bauteilen ist der Name angegeben')
43 def step_impl(context, ifc_class):
44 context.execute_steps(f'* All "{ifc_class}" elements have a name given')
45
46
47 @step('Bei allen "{ifc_class}" Bauteilen ist die Beschreibung angegeben')
48 def step_impl(context, ifc_class):
49 context.execute_steps(f'* All "{ifc_class}" elements have a description given')