diff --git a/qiita_client/tests/test_plugin.py b/qiita_client/tests/test_plugin.py index 62e20a6..ab87f6b 100644 --- a/qiita_client/tests/test_plugin.py +++ b/qiita_client/tests/test_plugin.py @@ -13,11 +13,10 @@ from json import dumps from tempfile import mkdtemp -from qiita_client.testing import PluginTestCase +from qiita_client.testing import PluginTestCase, URL from qiita_client import (QiitaPlugin, QiitaTypePlugin, QiitaCommand, QiitaArtifactType, ArtifactInfo) -URL = 'https://localhost:21174' class QiitaCommandTest(TestCase): def setUp(self): @@ -169,7 +168,7 @@ def html_generator_func(a, b, c, d): validate_func, html_generator_func, atypes) # Generate the config file for the new plugin - tester.generate_config('ls', 'echo') + tester.generate_config('ls', 'echo', self.ca_cert) # Ask Qiita to reload the plugins self.qclient.post('/apitest/reload_plugins/') @@ -213,7 +212,7 @@ def func(qclient, job_id, job_params, working_dir): {'out1': 'Demultiplexed'}) tester.register_command(a_cmd) - tester.generate_config('ls', 'echo') + tester.generate_config('ls', 'echo', self.ca_cert) self.qclient.post('/apitest/reload_plugins/') tester(URL, 'register', 'ignored') diff --git a/qiita_client/tests/test_qiita_client.py b/qiita_client/tests/test_qiita_client.py index f713d89..87178b0 100644 --- a/qiita_client/tests/test_qiita_client.py +++ b/qiita_client/tests/test_qiita_client.py @@ -7,7 +7,7 @@ # ----------------------------------------------------------------------------- from unittest import TestCase, main -from os import remove, close, environ +from os import remove, close from os.path import basename, exists from tempfile import mkstemp from json import dumps