[copr] master: Fine tune the manage.py test command (aafb0e6)
bkabrda at fedoraproject.org
bkabrda at fedoraproject.org
Thu Feb 21 09:13:32 UTC 2013
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit aafb0e677ba3e6cfa222d55e84e85a1d25cc2277
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date: Wed Feb 20 08:58:41 2013 +0100
Fine tune the manage.py test command
>---------------------------------------------------------------
coprs_frontend/manage.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/coprs_frontend/manage.py b/coprs_frontend/manage.py
index f4054fc..1b798e9 100755
--- a/coprs_frontend/manage.py
+++ b/coprs_frontend/manage.py
@@ -16,7 +16,8 @@ from coprs.logic import coprs_logic
class TestCommand(Command):
def run(self, test_args):
os.environ['COPRS_ENVIRON_UNITTEST'] = '1'
- subprocess.call(['py.test'] + test_args)
+ os.environ['PYTHONPATH'] = '.'
+ subprocess.call(['py.test'] + (test_args or []))
option_list = (
Option('-a',
More information about the copr-devel
mailing list