Example #1
0
 def test_run_checks_overridden(self):
     with self.settings(TEST_RUNNER="myapp.test.CustomRunnner"):
         self.assertEqual(len(django_1_6_0.run_checks()), 0)
Example #2
0
 def test_run_checks_new_default(self):
     with self.settings(TEST_RUNNER="django.test.runner.DiscoverRunner"):
         result = django_1_6_0.run_checks()
         self.assertEqual(len(result), 1)
         self.assertTrue("You have not explicitly set 'TEST_RUNNER'" in result[0])