1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Switched TestCase to SimpleTestCase where possible in Django's tests.

This commit is contained in:
Tim Graham
2018-11-26 14:05:02 -05:00
parent f091ea3515
commit 193c109327
37 changed files with 130 additions and 134 deletions

View File

@@ -1,7 +1,7 @@
from unittest import mock
from django.db import connections, models
from django.test import TestCase
from django.test import SimpleTestCase
from django.test.utils import isolate_apps, override_settings
@@ -15,8 +15,7 @@ class TestRouter:
@override_settings(DATABASE_ROUTERS=[TestRouter()])
@isolate_apps('check_framework')
class TestMultiDBChecks(TestCase):
multi_db = True
class TestMultiDBChecks(SimpleTestCase):
def _patch_check_field_on(self, db):
return mock.patch.object(connections[db].validation, 'check_field')