Skip to content

Commit 4b1ce26

Browse files
committed
Django 1.9 test compatibility fixes
1 parent 4b241a9 commit 4b1ce26

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

tests/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ def django_testdir(request, testdir, monkeypatch):
6060
DATABASES = %(db_settings)s
6161
6262
INSTALLED_APPS = [
63+
'django.contrib.auth',
64+
'django.contrib.contenttypes',
6365
'tpkg.app',
6466
]
6567
SECRET_KEY = 'foobar'

tests/test_environment.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ def test_mail_again():
2929

3030

3131
@pytest.mark.django_project(extra_settings="""
32-
INSTALLED_APPS = [
33-
'tpkg.app',
34-
]
3532
TEMPLATE_LOADERS = (
3633
'django.template.loaders.filesystem.Loader',
3734
'django.template.loaders.app_directories.Loader',
@@ -76,9 +73,6 @@ def test_ignore(client):
7673

7774

7875
@pytest.mark.django_project(extra_settings="""
79-
INSTALLED_APPS = [
80-
'tpkg.app',
81-
]
8276
TEMPLATE_LOADERS = (
8377
'django.template.loaders.filesystem.Loader',
8478
'django.template.loaders.app_directories.Loader',

0 commit comments

Comments
 (0)