Przeglądaj źródła

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

Ask Solem 15 lat temu
rodzic
commit
b5c587a853
1 zmienionych plików z 4 dodań i 4 usunięć
  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