diff options
author | egernug <gerard.nugent@est.tech> | 2022-02-18 15:20:14 +0000 |
---|---|---|
committer | egernug <gerard.nugent@est.tech> | 2022-02-22 09:27:16 +0000 |
commit | 37762006756658532012d9b8e4286e80acb612c4 (patch) | |
tree | d8bbd23cd1f66cc02c6a45f9d40193bc201519e1 /components/pm-subscription-handler/tests | |
parent | eabbdce7cba8c04a852cad47b0731b88030e1856 (diff) |
[PMSH] Fixes for Flask, MarkupSafe versions + tox
Fixes due to version issues and minor fixes for tox and unit test
Patch 3+4: Version bump
Issue-ID: DCAEGEN2-3086
Signed-off-by: egernug <gerard.nugent@est.tech>
Change-Id: Ibbb83bb50f96737ad127c4c2463957500f7581db
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' |