diff options
author | 2020-06-19 13:09:44 +0100 | |
---|---|---|
committer | 2020-06-30 02:15:21 +0100 | |
commit | b80449b81a2deb3b6e2510a655de02f9375ef636 (patch) | |
tree | ee022a88ee287645c72f6716eb9c501b9cf06484 /components/pm-subscription-handler/tests/test_subscription.py | |
parent | 20637908b156aeff53d7607f88d655d0becc1f11 (diff) |
[PMSH] Improve Failure Handling
Signed-off-by: ERIMROB <robertas.rimkus@est.tech>
Change-Id: I15d338321957a293e9f444a10cf3bb06f4212f3e
Issue-ID: DCAEGEN2-2157
Diffstat (limited to 'components/pm-subscription-handler/tests/test_subscription.py')
-rwxr-xr-x | components/pm-subscription-handler/tests/test_subscription.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/components/pm-subscription-handler/tests/test_subscription.py b/components/pm-subscription-handler/tests/test_subscription.py index 95db6b24..1543afe8 100755 --- a/components/pm-subscription-handler/tests/test_subscription.py +++ b/components/pm-subscription-handler/tests/test_subscription.py @@ -22,7 +22,6 @@ from unittest import TestCase from unittest.mock import patch from requests import Session -from tenacity import stop_after_attempt import mod.aai_client as aai_client from mod import db, create_app @@ -159,7 +158,6 @@ class SubscriptionTest(TestCase): @patch('mod.subscription.Subscription.update_subscription_status') def test_process_activate_subscription(self, mock_update_sub_status, mock_update_sub_nf, mock_add_nfs): - self.app_conf.subscription.process_subscription.retry.stop = stop_after_attempt(1) self.app_conf.subscription.process_subscription([list(self.xnfs)[0]], self.mock_mr_pub, self.app_conf) @@ -174,7 +172,6 @@ class SubscriptionTest(TestCase): def test_process_deactivate_subscription(self, mock_update_sub_status, mock_update_sub_nf): self.app_conf.subscription.administrativeState = 'LOCKED' - self.app_conf.subscription.process_subscription.retry.stop = stop_after_attempt(1) self.app_conf.subscription.process_subscription([list(self.xnfs)[0]], self.mock_mr_pub, self.app_conf) @@ -184,7 +181,6 @@ class SubscriptionTest(TestCase): mock_update_sub_status.assert_called() def test_process_subscription_exception(self): - self.app_conf.subscription.process_subscription.retry.stop = stop_after_attempt(1) self.assertRaises(Exception, self.app_conf.subscription.process_subscription, [list(self.xnfs)[0]], 'not_mr_pub', 'app_config') |