From bf08e7b40c7e9643328b53654daec66956d479aa Mon Sep 17 00:00:00 2001 From: Katherine Schinkel Date: Fri, 12 Feb 2016 12:06:50 -0500 Subject: [PATCH] add test for one harvester --- tasks.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tasks.py b/tasks.py index a87b6ac7..0d77757e 100644 --- a/tasks.py +++ b/tasks.py @@ -138,6 +138,17 @@ def test(cov=True, doctests=True, verbose=False, debug=False, pdb=False): run(cmd, pty=True) + +@task +def one_test(shortname): + """ + Runs a test on a specific harvester + """ + cmd = 'py.test tests/test_harvesters.py::test_harvester\[{}]'.format(shortname) + + run(cmd, pty=True) + + @task def wheelhouse(develop=False): ''' Sets up the wheelhouse for requirements '''