4f2c71be08173ca8de349bc9edc367825253b007
[django-tables2.git] / tests / __init__.py
1 from attest import AssertImportHook, Tests
2
3 # Django's django.utils.module_loading.module_has_submodule is busted
4 AssertImportHook.disable()
5
6
7 from django.conf import settings
8
9 # It's important to configure prior to importing the tests, as some of them
10 # import Django's DB stuff.
11 settings.configure(
12     DATABASES = {
13         'default': {
14             'ENGINE': 'django.db.backends.sqlite3',
15             'NAME': ':memory:',
16         }
17     },
18     INSTALLED_APPS = [
19         'tests.testapp',
20         'django_tables',
21     ],
22     ROOT_URLCONF = 'tests.testapp.urls',
23 )
24
25
26 from .core import core
27 from .templates import templates
28 from .models import models
29 from .utils import utils
30 from .rows import rows
31 from .columns import columns
32
33
34 everything = Tests([core, templates, models, utils, rows, columns])