3D axis representation contexts are now created by default for all new projects

This commit is contained in:
Dion Moult
2022-09-23 12:39:23 +10:00
parent 351dcfa241
commit 7cee0a85c6
2 changed files with 12 additions and 0 deletions
@@ -41,6 +41,9 @@ def create_project(ifc, project, schema=None, template=None):
body = project.run_context_add_context(
context_type="Model", context_identifier="Body", target_view="MODEL_VIEW", parent=model
)
project.run_context_add_context(
context_type="Model", context_identifier="Axis", target_view="GRAPH_VIEW", parent=model
)
project.run_context_add_context(
context_type="Model", context_identifier="Box", target_view="MODEL_VIEW", parent=model
)
+9
View File
@@ -44,6 +44,9 @@ class TestCreateProject:
project.run_context_add_context(
context_type="Model", context_identifier="Body", target_view="MODEL_VIEW", parent="model"
).should_be_called().will_return("body")
project.run_context_add_context(
context_type="MODEL", context_identifier="Axis", target_view="GRAPH_VIEW", parent="model"
).should_be_called()
project.run_context_add_context(
context_type="Model", context_identifier="Box", target_view="MODEL_VIEW", parent="model"
).should_be_called()
@@ -94,6 +97,9 @@ class TestCreateProject:
project.run_context_add_context(
context_type="Model", context_identifier="Body", target_view="MODEL_VIEW", parent="model"
).should_be_called().will_return("body")
project.run_context_add_context(
context_type="Model", context_identifier="Axis", target_view="GRAPH_VIEW", parent="model"
).should_be_called()
project.run_context_add_context(
context_type="Model", context_identifier="Box", target_view="MODEL_VIEW", parent="model"
).should_be_called()
@@ -153,6 +159,9 @@ class TestCreateProject:
project.run_context_add_context(
context_type="Model", context_identifier="Body", target_view="MODEL_VIEW", parent="model"
).should_be_called().will_return("body")
project.run_context_add_context(
context_type="Model", context_identifier="Axis", target_view="GRAPH_VIEW", parent="model"
).should_be_called()
project.run_context_add_context(
context_type="Model", context_identifier="Box", target_view="MODEL_VIEW", parent="model"
).should_be_called()