mirror of
https://github.com/django/django.git
synced 2025-08-29 06:54:40 +00:00
Fixed #25415 -- Made DiscoverRunner run system checks.
This commit is contained in:
parent
391c450fba
commit
5eff8a7783
7 changed files with 42 additions and 1 deletions
|
@ -17,7 +17,7 @@ from django.test.utils import (
|
|||
from django.utils.encoding import force_text
|
||||
from django.utils.six import StringIO
|
||||
|
||||
from .models import SimpleModel
|
||||
from .models import SimpleModel, my_check
|
||||
|
||||
|
||||
class DummyObj(object):
|
||||
|
@ -303,3 +303,8 @@ class CheckFrameworkReservedNamesTests(SimpleTestCase):
|
|||
),
|
||||
]
|
||||
self.assertEqual(errors, expected)
|
||||
|
||||
|
||||
class ChecksRunDuringTests(SimpleTestCase):
|
||||
def test_registered_check_did_run(self):
|
||||
self.assertTrue(my_check.did_run)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue