Topo: Add supported-tps to logical TPs 83/13483/1 master
authorMartin Skorupski <martin.skorupski@highstreet-technologies.com>
Sat, 28 Sep 2024 14:28:32 +0000 (16:28 +0200)
committerMartin Skorupski <martin.skorupski@highstreet-technologies.com>
Sat, 28 Sep 2024 14:28:32 +0000 (16:28 +0200)
- adopt TP module test

Issue-ID: OAM-417
Change-Id: I44e6688bf0dc3e9d71998ee8abd05474c776ded8
Signed-off-by: Martin Skorupski <martin.skorupski@highstreet-technologies.com>
code/network-generator/tests/test_o_ran_termination_point.py

index e461025..7a08b4e 100644 (file)
@@ -29,7 +29,6 @@ def test_o_ran_termination_point() -> None:
     assert o_ran_termination_point.name == "my-name"
     assert o_ran_termination_point.administrativeState.value == "locked"
     assert o_ran_termination_point.supporter == "my-supporter"
-    assert o_ran_termination_point.parent == 0
     assert len(str(o_ran_termination_point)) == 357
 
     o_ran_termination_point = ORanTerminationPoint(
@@ -37,13 +36,11 @@ def test_o_ran_termination_point() -> None:
             "id": "my-id",
             "administrativeState": AdministrativeState.UNLOCKED,
             "operationalState": OperationalState.ENABLED,
-            "supporter": "my_personal_fan",
-            "parent": ORanTerminationPoint(),
+            "supporter": "my_personal_fan"
         }
     )
     assert len(o_ran_termination_point.id) == 36
     assert o_ran_termination_point.administrativeState.value == "unlocked"
     assert o_ran_termination_point.operationalState.value == "enabled"
     assert o_ran_termination_point.supporter == "my_personal_fan"
-    assert type(o_ran_termination_point.parent) is int
     assert len(str(o_ran_termination_point)) == 359