Skip to content

Commit 80e57da

Browse files
committed
cls.rootca
1 parent 671f4c4 commit 80e57da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

qiita_client/testing.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ def setUpClass(cls):
2424
cls.client_id = '19ndkO3oMKsoChjVVWluF7QkxHRfYhTKSFbAVt8IhK7gZgDaO4'
2525
cls.client_secret = ('J7FfQ7CQdOxuKhQAf1eoGgBAE81Ns8Gu3EKaWFm3IO2JKh'
2626
'AmmCWZuabe0O5Mp28s1')
27+
cls.rootca = environ.get('QIITA_ROOTCA_CERT', None)
2728
qiita_port = int(environ.get('QIITA_PORT', 21174))
2829

2930
# do not rely on defining ca_cert for these tests. Instead append
3031
# the appropriate CA cert to certifi's pem file.
3132
cls.qclient = QiitaClient("https://localhost:%d" % qiita_port,
32-
cls.client_id, cls.client_secret)
33+
cls.client_id, cls.rootca)
34+
3335
logger.debug(
3436
'PluginTestCase.setUpClass() token %s' % cls.qclient._token)
3537
cls.qclient.post('/apitest/reload_plugins/')

0 commit comments

Comments
 (0)