diff options
Diffstat (limited to 'components/pm-subscription-handler/tests')
-rwxr-xr-x | components/pm-subscription-handler/tests/test_aai_event_handler.py | 8 | ||||
-rwxr-xr-x | components/pm-subscription-handler/tests/test_controller.py | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/components/pm-subscription-handler/tests/test_aai_event_handler.py b/components/pm-subscription-handler/tests/test_aai_event_handler.py index d06b7728..5fc38c52 100755 --- a/components/pm-subscription-handler/tests/test_aai_event_handler.py +++ b/components/pm-subscription-handler/tests/test_aai_event_handler.py @@ -1,5 +1,5 @@ # ============LICENSE_START=================================================== -# Copyright (C) 2020-2021 Nordix Foundation. +# Copyright (C) 2020-2022 Nordix Foundation. # ============================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -46,8 +46,10 @@ class AAIEventHandlerTest(BaseClassSetup): super().tearDownClass() @patch('mod.pmsh_config.AppConfig.get_from_topic') - @patch('mod.aai_event_handler.NetworkFunction.delete') - def test_process_aai_delete_events(self, mock_nf_delete, mr_aai_mock): + @patch('mod.network_function.NetworkFunction.set_nf_model_params') + @patch('mod.network_function.NetworkFunction.delete') + def test_process_aai_delete_events(self, mock_nf_delete, mock_set_sdnc_params, mr_aai_mock): + mock_set_sdnc_params.return_value = True mr_aai_mock.return_value = self.mr_aai_events aai_handler = AAIEventHandler(self.app) network_function = NetworkFunctionModel( diff --git a/components/pm-subscription-handler/tests/test_controller.py b/components/pm-subscription-handler/tests/test_controller.py index 9c69d6d6..42c52c09 100755 --- a/components/pm-subscription-handler/tests/test_controller.py +++ b/components/pm-subscription-handler/tests/test_controller.py @@ -229,7 +229,6 @@ class ControllerTestCase(BaseClassSetup): self.assertEqual(query_meas_group_by_name('MG_unlocked', 'MG1').measurement_group_name, 'MG1') - def test_delete_sub_when_state_locked(self): subscription_unlocked_data = create_subscription_data('MG_locked') subscription_unlocked_data.measurement_groups[0].measurement_group_name = 'lock' |