Define the schema 62/13462/1 master
authorMartin Skorupski <martin.skorupski@highstreet-technologies.com>
Wed, 25 Sep 2024 12:48:24 +0000 (14:48 +0200)
committerMartin Skorupski <martin.skorupski@highstreet-technologies.com>
Wed, 25 Sep 2024 12:48:24 +0000 (14:48 +0200)
- update mudule test

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

index 9125955..e461025 100644 (file)
@@ -22,12 +22,15 @@ from network_generation.model.python.type_definitions import (
 
 
 def test_o_ran_termination_point() -> None:
-    o_ran_termination_point: ORanTerminationPoint = ORanTerminationPoint()
-    assert o_ran_termination_point.id == "O-RAN-DU-00-00-00-00-02-OFHS"
+    o_ran_termination_point: ORanTerminationPoint = ORanTerminationPoint({
+        "name": "my-name",
+        "supporter": "my-supporter"
+    })
+    assert o_ran_termination_point.name == "my-name"
     assert o_ran_termination_point.administrativeState.value == "locked"
-    assert o_ran_termination_point.supporter == "O-RAN-DU-00-00-00-00-02-PHY"
+    assert o_ran_termination_point.supporter == "my-supporter"
     assert o_ran_termination_point.parent == 0
-    assert len(str(o_ran_termination_point)) == 337
+    assert len(str(o_ran_termination_point)) == 357
 
     o_ran_termination_point = ORanTerminationPoint(
         {
@@ -38,9 +41,9 @@ def test_o_ran_termination_point() -> None:
             "parent": ORanTerminationPoint(),
         }
     )
-    assert len(o_ran_termination_point.id) == 5
+    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)) == 316
+    assert len(str(o_ran_termination_point)) == 359