1
0
mirror of https://github.com/gryf/pygtktalog.git synced 2025-12-17 11:30:19 +01:00

Repaired test task

This commit is contained in:
2010-05-02 11:29:53 +02:00
parent 3b0cb80407
commit 7536e2c60a

View File

@@ -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)