diff options
Diffstat (limited to 'app/test/fetch/api_fetch/test_api_fetch_regions.py')
-rw-r--r-- | app/test/fetch/api_fetch/test_api_fetch_regions.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/test/fetch/api_fetch/test_api_fetch_regions.py b/app/test/fetch/api_fetch/test_api_fetch_regions.py index 7d1c16a..52bceae 100644 --- a/app/test/fetch/api_fetch/test_api_fetch_regions.py +++ b/app/test/fetch/api_fetch/test_api_fetch_regions.py @@ -18,7 +18,11 @@ from unittest.mock import MagicMock class TestApiFetchRegions(TestFetch):
def setUp(self):
+ super().setUp()
+
+ self._v2_auth_pwd = ApiFetchRegions.v2_auth_pwd
ApiFetchRegions.v2_auth_pwd = MagicMock(return_value=TOKEN)
+
self.configure_environment()
def test_get(self):
@@ -39,3 +43,7 @@ class TestApiFetchRegions(TestFetch): ApiFetchRegions.v2_auth_pwd = MagicMock(return_value=TOKEN)
self.assertEqual(ret, [], "Can't get [] when the token is invalid")
+
+ def tearDown(self):
+ super().tearDown()
+ ApiFetchRegions.v2_auth_pwd = self._v2_auth_pwd
|