File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 2222from structurizr .model .software_system import SoftwareSystem
2323
2424
25+ @pytest .fixture (scope = "function" )
26+ def empty_model () -> Model :
27+ """Provide an empty Model on demand for test cases to use."""
28+ return Model ()
29+
30+
2531@pytest .mark .parametrize (
2632 "attributes" ,
2733 [
@@ -42,3 +48,9 @@ def test_add_container_accepts_additional_args():
4248 system = model .add_software_system (name = "Banking System" )
4349 container = system .add_container ("container" , "description" , id = "id1" )
4450 assert container .id == "id1"
51+
52+
53+ def test_add_container_technology_is_optional (empty_model : Model ):
54+ system = empty_model .add_software_system (name = "sys" )
55+ container = system .add_container (name = "Container" , description = "Description" )
56+ assert container .technology == ""
You can’t perform that action at this time.
0 commit comments