bimstester: features, move spatial structure tests from examples to implemented steps

This commit is contained in:
Bernd Hahnebach
2021-12-07 12:16:18 +01:00
parent 3fad28572b
commit c658f7610e
2 changed files with 6 additions and 3 deletions
@@ -0,0 +1,11 @@
from behave import step
from bimtester.ifc import IfcStore
from bimtester.lang import _
@step('All buildings have an address')
def step_impl(context):
for building in IfcStore.file.by_type("IfcBuilding"):
if not building.BuildingAddress:
assert False, f'The building "{building.Name}" has no address.'