Now using django's new test runner. Fixed test project and examples.

This commit is contained in:
Bernardo Pires 2015-01-05 15:43:40 +01:00
parent 845e19be9c
commit 50e67c8900
5 changed files with 6 additions and 3 deletions

View File

@ -46,6 +46,8 @@ TENANT_APPS = (
TENANT_MODEL = "customers.Client" # app.Model
TEST_RUNNER = 'django.test.runner.DiscoverRunner'
import django
if django.VERSION >= (1, 7, 0):
INSTALLED_APPS = list(set(TENANT_APPS + SHARED_APPS))

View File

@ -93,6 +93,8 @@ DATABASE_ROUTERS = (
'tenant_schemas.routers.TenantSyncRouter',
)
TEST_RUNNER = 'django.test.runner.DiscoverRunner'
MIDDLEWARE_CLASSES = (
'tenant_tutorial.middleware.TenantTutorialMiddleware',
'django.middleware.common.CommonMiddleware',

View File

@ -1,3 +1,2 @@
from models import *
from routes import *
from tenants import *
from test_routes import *
from test_tenants import *