2828
2929
3030def test_adding_relationship_to_element_adds_to_model ():
31- """
31+ """Ensure relationships are added to the model.
32+
3233 Make sure that when a relationship is added via Element.add_relationship it also
3334 gets added to the model and to the other element.
3435 """
@@ -47,9 +48,10 @@ def test_adding_relationship_to_element_adds_to_model():
4748
4849
4950def test_adding_relationship_to_model_adds_to_element ():
50- """
51- Make sure that when a relationship is added via Element.add_relationship it also
52- gets added to the model and to the other element.
51+ """Ensure relationships are added to elements.
52+
53+ Make sure that when a relationship is added via Model.add_relationship it also
54+ gets added to the elements.
5355 """
5456 model = Model ()
5557 sys1 = model .add_software_system (name = "sys1" )
@@ -66,10 +68,7 @@ def test_adding_relationship_to_model_adds_to_element():
6668
6769
6870def test_adding_relationship_via_uses_adds_to_elements ():
69- """
70- Make sure that when a relationship is added via StaticStructureElement.uses
71- then it is reflected in the Elements.
72- """
71+ """Ensure uses() adds relationships to the model and elements."""
7372 model = Model ()
7473 sys1 = model .add_software_system (name = "sys1" )
7574 sys2 = model .add_software_system (name = "sys2" )
@@ -87,7 +86,7 @@ def test_adding_relationship_via_uses_adds_to_elements():
8786 ["BigBank.json" ],
8887)
8988def test_relationships_after_deserialisation_are_consistent (filename : str ):
90- """Make sure that relationships are consistent between the Model and the Element after deserialisation ."""
89+ """Ensure deserialisaton leaves realationships consistent."""
9190 path = DEFINITIONS / filename
9291 workspace = Workspace .load (path )
9392 model = workspace .model
0 commit comments