Commits

yrikk committed a049faf

Separate WebTestMixin and add TransactionWebTest

Comments (0)

Files changed (1)

django_webtest/__init__.py

 from django.conf import settings
 from django.test.signals import template_rendered
 from django.core.handlers.wsgi import WSGIHandler
-from django.test import TestCase
+from django.test import TestCase, TransactionTestCase
 from django.test.client import store_rendered_templates
 from django.utils.functional import curry
 from django.utils.importlib import import_module
         return {}
 
 
-class WebTest(TestCase):
+class WebTest(WebTestMixin, TestCase):
+    pass
+
+
+class TransactionWebTest(WebTestMixin, TestCase):
+    pass
+
+
+class WebTestMixin(object):
 
     extra_environ = {}
     csrf_checks = True