Skip to content
This repository has been archived by the owner on Jun 20, 2018. It is now read-only.

Tests don't run with Django 1.4 #37

Open
akaihola opened this issue Apr 17, 2012 · 0 comments
Open

Tests don't run with Django 1.4 #37

akaihola opened this issue Apr 17, 2012 · 0 comments

Comments

@akaihola
Copy link
Contributor

Fix available in akaihola/gargoyle@511b7b8

$ python setup.py test
running test
running egg_info
writing requirements to gargoyle.egg-info/requires.txt
writing gargoyle.egg-info/PKG-INFO
writing top-level names to gargoyle.egg-info/top_level.txt
writing dependency_links to gargoyle.egg-info/dependency_links.txt
reading manifest file 'gargoyle.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'README'
warning: no previously-included files matching '*~' found anywhere in distribution
writing manifest file 'gargoyle.egg-info/SOURCES.txt'
running build_ext
Traceback (most recent call last):
  File "setup.py", line 36, in <module>
    'Topic :: Software Development'
  File "lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "setuptools/command/test.py", line 137, in run
    self.with_project_on_sys_path(self.run_tests)
  File "setuptools/command/test.py", line 117, in with_project_on_sys_path
    func()
  File "setuptools/command/test.py", line 146, in run_tests
    testLoader = loader_class()
  File "lib/python2.7/unittest/main.py", line 94, in __init__
    self.parseArgs(argv)
  File "lib/python2.7/unittest/main.py", line 149, in parseArgs
    self.createTests()
  File "lib/python2.7/unittest/main.py", line 158, in createTests
    self.module)
  File "lib/python2.7/unittest/loader.py", line 128, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "lib/python2.7/unittest/loader.py", line 91, in loadTestsFromName
    module = __import__('.'.join(parts_copy))
  File "gargoyle/runtests.py", line 55, in <module>
    from django_nose import NoseTestSuiteRunner
  File "django_nose/__init__.py", line 4, in <module>
    from django_nose.runner import *
  File "django_nose/runner.py", line 18, in <module>
    from django.core.management.commands.loaddata import Command
  File "django/core/management/commands/loaddata.py", line 13, in <module>
    from django.core import serializers
  File "django/core/serializers/__init__.py", line 21, in <module>
    from django.core.serializers.base import SerializerDoesNotExist
  File "django/core/serializers/base.py", line 7, in <module>
    from django.db import models
  File "django/db/__init__.py", line 40, in <module>
    backend = load_backend(connection.settings_dict['ENGINE'])
  File "django/db/__init__.py", line 34, in __getattr__
    return getattr(connections[DEFAULT_DB_ALIAS], item)
  File "django/db/utils.py", line 92, in __getitem__
    backend = load_backend(db['ENGINE'])
  File "django/db/utils.py", line 51, in load_backend
    raise ImproperlyConfigured(error_msg)
django.core.exceptions.ImproperlyConfigured: 'sqlite3' isn't an available database backend.
Try using django.db.backends.sqlite3 instead.
Error was: No module named base
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant