summaryrefslogtreecommitdiff
path: root/tests/sessions_tests
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2016-02-04 11:47:20 -0500
committerSimon Charette <charette.s@gmail.com>2016-02-04 12:28:09 -0500
commit19318507d92d35f5f5cee6bfb7c379efa309c4f8 (patch)
treed0828315ce21bf4c4f6f14c22f1cfcafc91edfcb /tests/sessions_tests
parentd7db417f1a62dfd6aa3435c0dae04b67a5b8c9a2 (diff)
downloaddjango-19318507d92d35f5f5cee6bfb7c379efa309c4f8.tar.gz
Stopped registering the sessions tests models to the sessions app.
Diffstat (limited to 'tests/sessions_tests')
-rw-r--r--tests/sessions_tests/models.py (renamed from tests/sessions_tests/custom_db_backend.py)3
-rw-r--r--tests/sessions_tests/tests.py4
2 files changed, 2 insertions, 5 deletions
diff --git a/tests/sessions_tests/custom_db_backend.py b/tests/sessions_tests/models.py
index 5d4857e5bb..7a358595e9 100644
--- a/tests/sessions_tests/custom_db_backend.py
+++ b/tests/sessions_tests/models.py
@@ -14,9 +14,6 @@ class CustomSession(AbstractBaseSession):
"""
account_id = models.IntegerField(null=True, db_index=True)
- class Meta:
- app_label = 'sessions'
-
@classmethod
def get_session_store_class(cls):
return SessionStore
diff --git a/tests/sessions_tests/tests.py b/tests/sessions_tests/tests.py
index c5a7692799..d284dc8236 100644
--- a/tests/sessions_tests/tests.py
+++ b/tests/sessions_tests/tests.py
@@ -34,7 +34,7 @@ from django.utils import six, timezone
from django.utils.encoding import force_text
from django.utils.six.moves import http_cookies
-from .custom_db_backend import SessionStore as CustomDatabaseSession
+from .models import SessionStore as CustomDatabaseSession
class SessionTestsMixin(object):
@@ -433,7 +433,7 @@ class DatabaseSessionWithTimeZoneTests(DatabaseSessionTests):
class CustomDatabaseSessionTests(DatabaseSessionTests):
backend = CustomDatabaseSession
- session_engine = 'sessions_tests.custom_db_backend'
+ session_engine = 'sessions_tests.models'
def test_extra_session_field(self):
# Set the account ID to be picked up by a custom session storage