mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +00:00
bimstester: features, move spatial structure tests from examples to implemented steps
This commit is contained in:
@@ -31,3 +31,5 @@ from bimtester.features.steps.model_federation import en
|
|||||||
use_step_matcher("parse")
|
use_step_matcher("parse")
|
||||||
from bimtester.features.steps.project_setup import de, en, fr, it, nl
|
from bimtester.features.steps.project_setup import de, en, fr, it, nl
|
||||||
|
|
||||||
|
use_step_matcher("parse")
|
||||||
|
from bimtester.features.steps.spatial_structure import en
|
||||||
|
|||||||
+4
-3
@@ -1,10 +1,11 @@
|
|||||||
from behave import step
|
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):
|
def step_impl(context):
|
||||||
for building in IfcFile.get().by_type("IfcBuilding"):
|
for building in IfcStore.file.by_type("IfcBuilding"):
|
||||||
if not building.BuildingAddress:
|
if not building.BuildingAddress:
|
||||||
assert False, f'The building "{building.Name}" has no address.'
|
assert False, f'The building "{building.Name}" has no address.'
|
||||||
Reference in New Issue
Block a user