Test suite fails for Django 1.4

Bug #972825 reported by Māris Fogels on 2012-04-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
django-configglue
Undecided
Unassigned

Bug Description

The test suite does not run when using Django 1.4. All tests pass when using Django 1.3.

Steps to reproduce:

 1. $ bzr branch lp:django-configglue
 2. $ cd django-configglue/
 3. $ virtualenv env
 4. $ env/bin/python setup.py test

running test
running egg_info
writing requirements to django_configglue.egg-info/requires.txt
writing django_configglue.egg-info/PKG-INFO
writing top-level names to django_configglue.egg-info/top_level.txt
writing dependency_links to django_configglue.egg-info/dependency_links.txt
reading manifest file 'django_configglue.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'django_configglue.egg-info/SOURCES.txt'
running build_ext
Traceback (most recent call last):
  File "setup.py", line 45, in <module>
    tests_require=['mock'],
  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/home/mars/isd/django-configglue/env/local/lib/python2.7/site-packages/distribute-0.6.19-py2.7.egg/setuptools/command/test.py", line 137, in run
    self.with_project_on_sys_path(self.run_tests)
  File "/home/mars/isd/django-configglue/env/local/lib/python2.7/site-packages/distribute-0.6.19-py2.7.egg/setuptools/command/test.py", line 117, in with_project_on_sys_path
    func()
  File "/home/mars/isd/django-configglue/env/local/lib/python2.7/site-packages/distribute-0.6.19-py2.7.egg/setuptools/command/test.py", line 146, in run_tests
    testLoader = loader_class()
  File "/usr/lib/python2.7/unittest/main.py", line 94, in __init__
    self.parseArgs(argv)
  File "/usr/lib/python2.7/unittest/main.py", line 149, in parseArgs
    self.createTests()
  File "/usr/lib/python2.7/unittest/main.py", line 158, in createTests
    self.module)
  File "/usr/lib/python2.7/unittest/loader.py", line 128, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python2.7/unittest/loader.py", line 113, in loadTestsFromName
    test = obj()
  File "/home/mars/isd/django-configglue/testproject/testrunner.py", line 16, in runtests
    call_command('test', 'django_configglue')
  File "/home/mars/isd/django-configglue/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 134, in call_command
    klass = load_command_class(app_name, name)
  File "/home/mars/isd/django-configglue/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 69, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File "/home/mars/isd/django-configglue/env/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/home/mars/isd/django-configglue/env/local/lib/python2.7/site-packages/django/core/management/commands/test.py", line 7, in <module>
    from django.test.utils import get_runner
  File "/home/mars/isd/django-configglue/env/local/lib/python2.7/site-packages/django/test/__init__.py", line 5, in <module>
    from django.test.client import Client, RequestFactory
  File "/home/mars/isd/django-configglue/env/local/lib/python2.7/site-packages/django/test/client.py", line 21, in <module>
    from django.test import signals
  File "/home/mars/isd/django-configglue/env/local/lib/python2.7/site-packages/django/test/signals.py", line 2, in <module>
    from django.db import connections
  File "/home/mars/isd/django-configglue/env/local/lib/python2.7/site-packages/django/db/__init__.py", line 11, in <module>
    if DEFAULT_DB_ALIAS not in settings.DATABASES:
  File "/home/mars/isd/django-configglue/env/local/lib/python2.7/site-packages/django/utils/functional.py", line 184, in inner
    self._setup()
  File "/home/mars/isd/django-configglue/env/local/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup
    self._wrapped = Settings(settings_module)
  File "/home/mars/isd/django-configglue/env/local/lib/python2.7/site-packages/django/conf/__init__.py", line 95, in __init__
    raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
ImportError: Could not import settings 'testproject.settings' (Is it on sys.path?): No module named project_template

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers