mirror of
https://github.com/Hopiu/django.git
synced 2026-05-05 22:24:43 +00:00
Used TransactionTestCase in ModWsgiHandlerTestCase
Now the data created in setUp() is not discarded when the connection is closed in the handler's methods.
This commit is contained in:
parent
2f6e00a840
commit
82a74dce24
1 changed files with 2 additions and 2 deletions
|
|
@ -2,10 +2,10 @@ from __future__ import unicode_literals
|
|||
|
||||
from django.contrib.auth.handlers.modwsgi import check_password, groups_for_user
|
||||
from django.contrib.auth.models import User, Group
|
||||
from django.test import TestCase
|
||||
from django.test import TransactionTestCase
|
||||
|
||||
|
||||
class ModWsgiHandlerTestCase(TestCase):
|
||||
class ModWsgiHandlerTestCase(TransactionTestCase):
|
||||
"""
|
||||
Tests for the mod_wsgi authentication handler
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue