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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user