mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-10 14:07:43 +00:00
Remove create project library ability, as you should create a project first
This commit is contained in:
@@ -25,8 +25,12 @@ class TestCreateProject(test.bim.bootstrap.NewFile):
|
||||
return """
|
||||
When I press "bim.create_project"
|
||||
Then an IFC file exists
|
||||
And the object named "IfcProject/My Project" is an "IfcProject"
|
||||
And the object named "IfcSite/My Site" is an "IfcSite"
|
||||
And the object named "IfcBuilding/My Building" is an "IfcBuilding"
|
||||
And the object named "IfcBuildingStorey/My Storey" is an "IfcBuildingStorey"
|
||||
And the object "IfcProject/My Project" is an "IfcProject"
|
||||
And the object "IfcSite/My Site" is an "IfcSite"
|
||||
And the object "IfcBuilding/My Building" is an "IfcBuilding"
|
||||
And the object "IfcBuildingStorey/My Storey" is an "IfcBuildingStorey"
|
||||
And the object "IfcProject/My Project" is in the collection "IfcProject/My Project"
|
||||
And the object "IfcSite/My Site" is in the collection "IfcSite/My Site"
|
||||
And the object "IfcBuilding/My Building" is in the collection "IfcBuilding/My Building"
|
||||
And the object "IfcBuildingStorey/My Storey" is in the collection "IfcBuildingStorey/My Storey"
|
||||
"""
|
||||
|
||||
@@ -19,14 +19,27 @@
|
||||
import test.bim.bootstrap
|
||||
|
||||
|
||||
class TestCreateProject(test.bim.bootstrap.NewFile):
|
||||
class TestAssignClass(test.bim.bootstrap.NewFile):
|
||||
@test.bim.bootstrap.scenario
|
||||
def test_assigning_a_class_to_a_cube(self):
|
||||
return """
|
||||
Given an empty IFC project
|
||||
When I add a cube
|
||||
And the object named "Cube" is selected
|
||||
And the object "Cube" is selected
|
||||
And I select "IfcWall" in "scene.BIMRootProperties.ifc_class"
|
||||
And I press "bim.assign_class"
|
||||
And the object named "IfcWall/Cube" is an "IfcWall"
|
||||
And the object "IfcWall/Cube" is an "IfcWall"
|
||||
"""
|
||||
|
||||
@test.bim.bootstrap.scenario
|
||||
def test_assigning_a_type_class_to_a_cube(self):
|
||||
return """
|
||||
Given an empty IFC project
|
||||
When I add a cube
|
||||
And the object "Cube" is selected
|
||||
And I select "IfcElementType" in "scene.BIMRootProperties.ifc_product"
|
||||
And I select "IfcWallType" in "scene.BIMRootProperties.ifc_class"
|
||||
And I press "bim.assign_class"
|
||||
And the object "IfcWallType/Cube" is an "IfcWallType"
|
||||
And the object "IfcWallType/Cube" is in the collection "Types"
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user