From 587b678d41e481294a302a8467121162bf06f274 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Tue, 31 Dec 2013 13:12:30 +0100 Subject: [PATCH] Made DeprecationDisplayTest more robust --- tests/test_runner/tests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_runner/tests.py b/tests/test_runner/tests.py index 0daf4ab3b7..2066181c67 100644 --- a/tests/test_runner/tests.py +++ b/tests/test_runner/tests.py @@ -364,12 +364,14 @@ class DeprecationDisplayTest(AdminScriptTestCase): def test_runner_deprecation_verbosity_default(self): args = ['test', '--settings=test_project.settings', 'test_runner_deprecation_app'] out, err = self.run_django_admin(args) + self.assertIn("Ran 1 test", err) self.assertIn("DeprecationWarning: warning from test", err) self.assertIn("DeprecationWarning: module-level warning from deprecation_app", err) def test_runner_deprecation_verbosity_zero(self): - args = ['test', '--settings=settings', '--verbosity=0'] + args = ['test', '--settings=test_project.settings', '--verbosity=0', 'test_runner_deprecation_app'] out, err = self.run_django_admin(args) + self.assertIn("Ran 1 test", err) self.assertFalse("DeprecationWarning: warning from test" in err)