Fixed #25415 -- Made DiscoverRunner run system checks.

This commit is contained in:
Adam Chainz 2016-03-18 14:24:13 +00:00 committed by Tim Graham
parent 391c450fba
commit 5eff8a7783
7 changed files with 42 additions and 1 deletions

View file

@ -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)