Permalink
Browse files

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 .
  • Loading branch information...
nsoranzo committed Aug 31, 2018
1 parent e96745e commit bad810a308f2cd60e1648594f3edba21a8219aeb
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/test_cmd_serve.py
@@ -70,7 +70,7 @@ def test_shed_serve(self):
tool_ids = None
for i in range(30):
tool_ids = [t["id"] for t in user_gi.tools.get_tools()]
if "toolshed.g2.bx.psu.edu/repos/devteam/fastqc/fastqc/0.71" in tool_ids:
if any(_.startswith("toolshed.g2.bx.psu.edu/repos/devteam/fastqc/fastqc/") for _ in tool_ids):
found = True
break
time.sleep(5)

0 comments on commit bad810a

Please sign in to comment.