mirror of
https://github.com/gryf/pygtktalog.git
synced 2025-12-17 19:40:21 +01:00
Repaired test task
This commit is contained in:
@@ -192,10 +192,10 @@ if HAVE_LINT:
|
|||||||
|
|
||||||
@task
|
@task
|
||||||
@cmdopts([('coverage', 'c', 'display coverage information')])
|
@cmdopts([('coverage', 'c', 'display coverage information')])
|
||||||
def test(opts):
|
def test(options):
|
||||||
"""run unit tests"""
|
"""run unit tests"""
|
||||||
cmd = "PYTHONPATH=%s:$PYTHONPATH nosetests -w test" % _setup_env()
|
cmd = "PYTHONPATH=%s:$PYTHONPATH nosetests -w test" % _setup_env()
|
||||||
if hasattr(opts.test, 'coverage'):
|
if hasattr(options.test, 'coverage'):
|
||||||
cmd += " --with-coverage --cover-package pygtktalog"
|
cmd += " --with-coverage --cover-package pygtktalog"
|
||||||
os.system(cmd)
|
os.system(cmd)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user