Skip to content

Commit bad810a

Browse files
committed
Fix ServeTestCase.test_shed_serve test
Make the test robust to fastqc version updates. Fix this test failure: ``` FAIL: test_shed_serve (tests.test_cmd_serve.ServeTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/travis/build/galaxyproject/planemo/tests/test_cmd_serve.py", line 78, in test_shed_serve assert found, "Failed to find fastqc id in %s" % tool_ids AssertionError: Failed to find fastqc id in [u'CONVERTER_ref_to_seq_taxomony', u'CONVERTER_SMILES_to_inchi', ... u'toolshed.g2.bx.psu.edu/repos/devteam/fastqc/fastqc/0.72', ... u'lped2pbedconvert'] ``` from https://travis-ci.org/galaxyproject/planemo/jobs/423136116 .
1 parent e96745e commit bad810a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_cmd_serve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def test_shed_serve(self):
7070
tool_ids = None
7171
for i in range(30):
7272
tool_ids = [t["id"] for t in user_gi.tools.get_tools()]
73-
if "toolshed.g2.bx.psu.edu/repos/devteam/fastqc/fastqc/0.71" in tool_ids:
73+
if any(_.startswith("toolshed.g2.bx.psu.edu/repos/devteam/fastqc/fastqc/") for _ in tool_ids):
7474
found = True
7575
break
7676
time.sleep(5)

0 commit comments

Comments
 (0)