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
@@ -31,3 +31,5 @@ from bimtester.features.steps.model_federation import en
use_step_matcher("parse")
from bimtester.features.steps.project_setup import de, en, fr, it, nl
use_step_matcher("parse")
from bimtester.features.steps.spatial_structure import en
@@ -1,10 +1,11 @@
from behave import step
from utils import IfcFile
from bimtester.ifc import IfcStore
from bimtester.lang import _
@step("all buildings have an address")
@step('All buildings have an address')
def step_impl(context):
for building in IfcFile.get().by_type("IfcBuilding"):
for building in IfcStore.file.by_type("IfcBuilding"):
if not building.BuildingAddress:
assert False, f'The building "{building.Name}" has no address.'