diff options
Diffstat (limited to 'components/pm-subscription-handler/tests/test_aai_event_handler.py')
-rwxr-xr-x | components/pm-subscription-handler/tests/test_aai_event_handler.py | 8 |
1 files changed, 5 insertions, 3 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( |