[SEBA-742] Tech-profile-id as a mandatory field in RCORDSubscriber
Change-Id: I3f7f1e816d7cac457e1e286d809fd2728fb6f0ee
diff --git a/xos/synchronizer/models/test_models.py b/xos/synchronizer/models/test_models.py
index a0e5a4d..16b0114 100644
--- a/xos/synchronizer/models/test_models.py
+++ b/xos/synchronizer/models/test_models.py
@@ -65,10 +65,13 @@
self.module_patcher = patch.dict('sys.modules', modules)
self.module_patcher.start()
- self.volt = Mock()
-
from models import RCORDSubscriber, RCORDIpAddress
+ self.volt = Mock(name="vOLT")
+ self.volt.leaf_model.name = "vOLT"
+ self.volt.get_olt_technology_from_unu_sn.return_value = "xgspon"
+
+
self.rcord_subscriber_class = RCORDSubscriber
self.rcord_subscriber = RCORDSubscriber()
@@ -85,9 +88,12 @@
self.rcord_subscriber.owner.provider_services = [self.volt]
self.rcord_subscriber.list_of_unused_c_tags_for_s_tag = []
+
self.rcord_ip = RCORDIpAddress()
self.rcord_ip.subscriber = 1
+ # TODO add a test for validate_tech_profile_id
+
def tearDown(self):
sys.path = self.sys_path_save