Skip to content

Commit 0601510

Browse files
committed
fix test_plugin.py
1 parent ec6f9b5 commit 0601510

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

qiita_client/tests/test_plugin.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@
1313
from json import dumps
1414
from tempfile import mkdtemp
1515

16-
from qiita_client.testing import PluginTestCase
16+
from qiita_client.testing import PluginTestCase, URL
1717
from qiita_client import (QiitaPlugin, QiitaTypePlugin, QiitaCommand,
1818
QiitaArtifactType, ArtifactInfo)
1919

20-
URL = 'https://localhost:21174'
2120

2221
class QiitaCommandTest(TestCase):
2322
def setUp(self):
@@ -169,7 +168,7 @@ def html_generator_func(a, b, c, d):
169168
validate_func, html_generator_func, atypes)
170169

171170
# Generate the config file for the new plugin
172-
tester.generate_config('ls', 'echo')
171+
tester.generate_config('ls', 'echo', self.ca_cert)
173172
# Ask Qiita to reload the plugins
174173
self.qclient.post('/apitest/reload_plugins/')
175174

@@ -213,7 +212,7 @@ def func(qclient, job_id, job_params, working_dir):
213212
{'out1': 'Demultiplexed'})
214213
tester.register_command(a_cmd)
215214

216-
tester.generate_config('ls', 'echo')
215+
tester.generate_config('ls', 'echo', self.ca_cert)
217216
self.qclient.post('/apitest/reload_plugins/')
218217
tester(URL, 'register', 'ignored')
219218

qiita_client/tests/test_qiita_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# -----------------------------------------------------------------------------
88

99
from unittest import TestCase, main
10-
from os import remove, close, environ
10+
from os import remove, close
1111
from os.path import basename, exists
1212
from tempfile import mkstemp
1313
from json import dumps

0 commit comments

Comments
 (0)