Skip to content

Commit

Permalink
fix test_plugin.py
Browse files Browse the repository at this point in the history
  • Loading branch information
antgonza committed Aug 19, 2024
1 parent ec6f9b5 commit 0601510
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions qiita_client/tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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/')

Expand Down Expand Up @@ -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')

Expand Down
2 changes: 1 addition & 1 deletion qiita_client/tests/test_qiita_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0601510

Please sign in to comment.