Commits

Anonymous committed edbf5d9

fixed manage command

  • Participants
  • Parent commits fd72104

Comments (0)

Files changed (3)

File django-smoke-admin/management/commands/smoke_admin_test.py

 from django.core.management.base import BaseCommand
-from runtests import runtests
-import StringIO
-from django.core import management
+import subprocess
 
 
 class Command(BaseCommand):
 
     def handle(self, *args, **options):
-#        runtests()
-        result = StringIO.StringIO()
-#        management.call_command('test', '../../test_integrational/test_integrational.py', verbosity=0, stdout=result)
+        subprocess.call(['./test_app/runtests.py', 'django-smoke-admin'])

File test_app/runtests.py

 #!/usr/bin/env python
 import os, sys
 
-os.environ.setdefault("DJANGO_SETTINGS_MODULE", 'test_app.test_settings')
+os.environ.setdefault("DJANGO_SETTINGS_MODULE", 'test_settings')
 
 from optparse import OptionParser
 from django_nose.runner import NoseTestSuiteRunner

File test_app/test_settings.py

                   'django.contrib.admin',
                   'django.contrib.sessions',
 
-#                  'django-smoke-admin',
+                  'django-smoke-admin',
 #                  'test_app',
 #                  'tests_intergational'
     )