Mercurial > repos > shellac > guppy_basecaller
diff env/lib/python3.7/site-packages/bioblend/_tests/GalaxyTestBase.py @ 5:9b1c78e6ba9c draft default tip
"planemo upload commit 6c0a8142489327ece472c84e558c47da711a9142"
author | shellac |
---|---|
date | Mon, 01 Jun 2020 08:59:25 -0400 |
parents | 79f47841a781 |
children |
line wrap: on
line diff
--- a/env/lib/python3.7/site-packages/bioblend/_tests/GalaxyTestBase.py Thu May 14 16:47:39 2020 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -import os - -import bioblend -import bioblend.galaxy -from . import test_util -from .test_util import unittest - -bioblend.set_stream_logger('test', level='INFO') - -BIOBLEND_TEST_JOB_TIMEOUT = int(os.environ.get("BIOBLEND_TEST_JOB_TIMEOUT", "60")) - - -@test_util.skip_unless_galaxy() -class GalaxyTestBase(unittest.TestCase): - - def setUp(self): - galaxy_key = os.environ['BIOBLEND_GALAXY_API_KEY'] - galaxy_url = os.environ['BIOBLEND_GALAXY_URL'] - self.gi = bioblend.galaxy.GalaxyInstance(url=galaxy_url, key=galaxy_key) - - def _test_dataset(self, history_id, contents="1\t2\t3", **kwds): - tool_output = self.gi.tools.paste_content(contents, history_id, **kwds) - return tool_output["outputs"][0]["id"] - - def _wait_and_verify_dataset(self, dataset_id, expected_contents, timeout_seconds=BIOBLEND_TEST_JOB_TIMEOUT): - dataset_contents = self.gi.datasets.download_dataset(dataset_id, maxwait=timeout_seconds) - self.assertEqual(dataset_contents, expected_contents)