Skip to content

Commit 1e4194f

Browse files
committed
fix bad merge and run black
1 parent dfc7683 commit 1e4194f

File tree

6 files changed

+12
-15
lines changed

6 files changed

+12
-15
lines changed

planemo/engine/galaxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def _register_job_data(job_data):
8080
interactor.VERBOSE_GALAXY_ERRORS = True
8181

8282
# on an external Galaxy it makes sense to keep test histories
83-
no_history_cleanup = config._kwds.get('engine') == 'external_galaxy'
83+
no_history_cleanup = config._kwds.get("engine") == "external_galaxy"
8484

8585
interactor.verify_tool(
8686
tool_id,

planemo/engine/test.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
from planemo.engine import engine_context
44
from planemo.galaxy import galaxy_config
55
from planemo.galaxy import galaxy_serve
6-
from planemo.galaxy.api import (
7-
DEFAULT_ADMIN_API_KEY
8-
)
6+
from planemo.galaxy.api import DEFAULT_ADMIN_API_KEY
97
from planemo.galaxy.config import _find_test_data
108
from planemo.galaxy.ephemeris_sleep import sleep
119
from planemo.galaxy.test import (
@@ -24,7 +22,7 @@ def test_runnables(ctx, runnables, original_paths=None, **kwds):
2422
if kwds.get("serve"):
2523
if "galaxy" not in kwds["engine"]:
2624
raise ValueError("The serve option is only supported by Galaxy-based engines.")
27-
kwds["galaxy_url"] = kwds["galaxy_url"] or ''.join(("http://", kwds["host"], ":", str(kwds["port"])))
25+
kwds["galaxy_url"] = kwds["galaxy_url"] or "".join(("http://", kwds["host"], ":", str(kwds["port"])))
2826
kwds["galaxy_admin_key"] = kwds["galaxy_admin_key"] or DEFAULT_ADMIN_API_KEY
2927
pid = os.fork()
3028
if pid == 0:

planemo/options.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,9 @@ def serve_option():
887887
"--serve",
888888
is_flag=True,
889889
default=False,
890-
help=("Continue serving Galaxy instance after testing. Like the serve command itself, this is only compatible with Galaxy-based engines.")
890+
help=(
891+
"Continue serving Galaxy instance after testing. Like the serve command itself, this is only compatible with Galaxy-based engines."
892+
),
891893
)
892894

893895

planemo/runnable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ def flatten_to_single_artifacts(runnables):
494494
if runnable.type.is_single_artifact:
495495
single_runnables.append(runnable)
496496
else:
497-
paths = glob.glob(f'{runnable.path}/*')
497+
paths = glob.glob(f"{runnable.path}/*")
498498
for path in paths:
499499
if os.path.isdir(path):
500500
continue

tests/test_cmd_serve.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,11 @@ def test_workflow_test_with_serve(self):
173173
extra_args = [
174174
"--serve",
175175
test_artifact,
176-
"--port", str(self._port),
176+
"--port",
177+
str(self._port),
177178
"--no_dependency_resolution",
178-
"--extra_tools", cat,
179+
"--extra_tools",
180+
cat,
179181
]
180182
self._launch_thread_and_wait(self._run_test, extra_args)
181183
time.sleep(30)
@@ -184,7 +186,7 @@ def test_workflow_test_with_serve(self):
184186
user_gi = self._user_gi
185187
workflows = user_gi.workflows.get_workflows()
186188
assert len(workflows) == 1
187-
assert workflows[0]['name'] == 'TestWorkflow1'
189+
assert workflows[0]["name"] == "TestWorkflow1"
188190
histories = user_gi.histories.get_histories(name="CWL Target History")
189191
assert len(histories) == 1
190192

tests/test_galaxy_config.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,8 @@ def test_refgenie_config_version():
4848
version_path = os.path.join(galaxy_lib_path, "version.py")
4949
with open(version_path, "w") as version_fh:
5050
version_fh.write('VERSION_MAJOR = "21.05"')
51-
<<<<<<< HEAD
52-
refgenie_config = get_refgenie_config(galaxy_root=tdc.temp_directory, refgenie_dir='/')
53-
assert yaml.load(refgenie_config, Loader=yaml.SafeLoader)['config_version'] == 0.3
54-
=======
5551
refgenie_config = get_refgenie_config(galaxy_root=tdc.temp_directory, refgenie_dir="/")
5652
assert yaml.load(refgenie_config, Loader=yaml.SafeLoader)["config_version"] == 0.3
57-
>>>>>>> upstream/master
5853

5954

6055
def _assert_property_is(config, prop, value):

0 commit comments

Comments
 (0)