mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 22:43:41 +00:00
bimstester: features, move spatial structure tests from examples to implemented steps
This commit is contained in:
@@ -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.'
|
||||
Reference in New Issue
Block a user