Commits

David Bennett  committed ab638e5

Maybe this will work… (still trying to get a coverage report)

  • Participants
  • Parent commits 81b7075

Comments (0)

Files changed (2)

File private_media/tests/tests.py

 import shutil
+import os
 from django.conf import settings
 from django.core.files.storage import default_storage
 from django.core.files.uploadedfile import SimpleUploadedFile
         obj.save()
 
     def tearDown(self):
-        shutil.rmtree(settings.MEDIA_ROOT)
+        shutil.rmtree(os.path.join(settings.MEDIA_ROOT, 'tests'))
 
     def test_file_exists(self):
         dirs, files = default_storage.listdir("tests")
 downloadcache = {toxworkdir}/_download/
 setenv =
     DJANGO_SETTINGS_MODULE = private_media.test_settings
-changedir = {toxworkdir}
+    PYTHONPATH = {toxinidir}
 commands =
-    {envbindir}/python {envbindir}/django-admin.py jenkins --output-dir={toxinidir}/reports
+    {envbindir}/python {envbindir}/django-admin.py jenkins
 deps =
     Django==1.3.1
     django-jenkins
 deps =
     Django==1.3.1
     Sphinx==1.1.2
-changedir = {toxinidir}
 commands =
     rm -rf docs/_build
     {envbindir}/sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html