Skip to content

Commit 8412f82

Browse files
committed
environ.get
1 parent 4c965e9 commit 8412f82

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

qiita_client/tests/test_plugin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ def html_generator_func(a, b, c, d):
146146
'PLUGIN_TYPE = artifact definition\n',
147147
'PUBLICATIONS = \n',
148148
'\n',
149-
'[oauth2]\n']
149+
'[oauth2]\n',
150+
'SERVER_CERT = \n']
150151
# We will test the last 2 lines independently since they're variable
151152
# in each test run
152153
self.assertEqual(conf[:-2], exp_lines)

qiita_client/tests/test_qiita_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def test_format_payload_error(self):
9797

9898
class QiitaClientTests(PluginTestCase):
9999
def setUp(self):
100-
self.ca_cert = environ['QIITA_ROOT_CA']
100+
self.ca_cert = environ.get('QIITA_ROOT_CA', None)
101101
self.tester = QiitaClient("https://localhost:21174",
102102
CLIENT_ID,
103103
CLIENT_SECRET,

0 commit comments

Comments
 (0)