0774bec03bbe9301cceba3f6e656d180f1279e8f
[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 )
23
24
25 from .core import core
26 from .templates import templates
27 from .models import models
28 from .utils import utils
29 from .rows import rows
30 from .columns import columns
31
32
33 everything = Tests([core, templates, models, utils, rows, columns])