소스 검색

pavement.py: "paver test" updated to work with non-django tests.

Ask Solem 15 년 전
부모
커밋
b5c587a853
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      pavement.py

+ 4 - 4
pavement.py

@@ -90,14 +90,14 @@ def bump(options):
     ("verbose", "V", "Make more noise"),
 ])
 def test(options):
-    cmd = "python manage.py test"
+    cmd = "CELERY_LOADER=default PYTHONPATH=tests nosetests"
     if getattr(options, "coverage", False):
-        cmd += " --coverage"
+        cmd += " --with-coverage3"
     if getattr(options, "quick", False):
-        cmd = "env QUICKTEST=1 SKIP_RLIMITS=1 %s" % cmd
+        cmd = "QUICKTEST=1 SKIP_RLIMITS=1 %s" % cmd
     if getattr(options, "verbose", False):
         cmd += " --verbosity=2"
-    sh(cmd, cwd="tests")
+    sh(cmd)
 
 
 @task