Skip to content

Commit 5f80324

Browse files
committed
Add API keys for test via environment variables
1 parent 370fa39 commit 5f80324

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/controllers/controller_test_base.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
tests.controllers.controller_test_base
55
6-
6+
77
"""
88

99
import unittest
@@ -20,13 +20,15 @@ class ControllerTestBase(unittest.TestCase):
2020
def setUpClass(cls):
2121
"""Class method called once before running tests in a test class."""
2222
cls.api_client = MessageMediaWebhooksClient()
23+
2324
cls.request_timeout = 30
2425
cls.assert_precision = 0.01
2526

27+
Configuration.basic_auth_user_name = os.environ['MessageMediaApiTestsKey']
28+
Configuration.basic_auth_password = os.environ['MessageMediaApiTestsSecret']
29+
2630

2731
def setUp(self):
2832
"""Method called once before every test in a test class."""
2933
self.response_catcher = HttpResponseCatcher()
3034
self.controller.http_call_back = self.response_catcher
31-
32-

0 commit comments

Comments
 (0)