mirror of
https://github.com/django/django.git
synced 2024-12-23 09:36:06 +00:00
Stopped registering the sessions tests models to the sessions app.
This commit is contained in:
parent
d7db417f1a
commit
19318507d9
@ -14,9 +14,6 @@ class CustomSession(AbstractBaseSession):
|
|||||||
"""
|
"""
|
||||||
account_id = models.IntegerField(null=True, db_index=True)
|
account_id = models.IntegerField(null=True, db_index=True)
|
||||||
|
|
||||||
class Meta:
|
|
||||||
app_label = 'sessions'
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_session_store_class(cls):
|
def get_session_store_class(cls):
|
||||||
return SessionStore
|
return SessionStore
|
@ -34,7 +34,7 @@ from django.utils import six, timezone
|
|||||||
from django.utils.encoding import force_text
|
from django.utils.encoding import force_text
|
||||||
from django.utils.six.moves import http_cookies
|
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):
|
class SessionTestsMixin(object):
|
||||||
@ -433,7 +433,7 @@ class DatabaseSessionWithTimeZoneTests(DatabaseSessionTests):
|
|||||||
|
|
||||||
class CustomDatabaseSessionTests(DatabaseSessionTests):
|
class CustomDatabaseSessionTests(DatabaseSessionTests):
|
||||||
backend = CustomDatabaseSession
|
backend = CustomDatabaseSession
|
||||||
session_engine = 'sessions_tests.custom_db_backend'
|
session_engine = 'sessions_tests.models'
|
||||||
|
|
||||||
def test_extra_session_field(self):
|
def test_extra_session_field(self):
|
||||||
# Set the account ID to be picked up by a custom session storage
|
# Set the account ID to be picked up by a custom session storage
|
||||||
|
Loading…
Reference in New Issue
Block a user