Skip to content

Commit

Permalink
Merge pull request #823 from jmchilton/quick_tests
Browse files Browse the repository at this point in the history
Refactor to speed up quick tests - fewer buggy URLs fetched.
  • Loading branch information
jmchilton authored May 15, 2018
2 parents 69bd359 + 9c3be43 commit f606a2f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 0 additions & 1 deletion planemo/bioconda_scripts/bioconductor_skeleton.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ def __init__(self, package):
Represents a single Bioconductor package page and provides access to
scraped data.
>>> x = BioCProjectPage('DESeq2')
"""
self.base_url = base_url
self.package = package
Expand Down
File renamed without changes.
9 changes: 8 additions & 1 deletion tests/test_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,16 @@ class LintTestCase(CliTestCase):
def test_ok_tools(self):
ok_tools = glob.glob("%s/ok_*" % TEST_TOOLS_DIR)
for ok_tool in ok_tools:
lint_cmd = ["lint", "--urls", ok_tool]
lint_cmd = ["lint", ok_tool]
self._check_exit_code(lint_cmd)

@skip_if_environ("PLANEMO_SKIP_SLOW_TESTS")
def test_ok_urls(self):
url_path = os.path.join(TEST_TOOLS_DIR, "url.xml")
lint_cmd = ["lint", "--urls", url_path]
self._check_exit_code(lint_cmd)

@skip_if_environ("PLANEMO_SKIP_SLOW_TESTS")
def test_ok_http(self):
lint_cmd = ["lint", "https://raw.githubusercontent.com/galaxyproject/planemo/master/tests/data/tools/ok_conditional.xml"]
self._check_exit_code(lint_cmd)
Expand Down

0 comments on commit f606a2f

Please sign in to comment.