summaryrefslogtreecommitdiff
path: root/tests/test_runner
diff options
context:
space:
mode:
authorMatthijs Kooijman <matthijs@stdin.nl>2018-08-16 21:49:03 +0200
committerTim Graham <timograham@gmail.com>2018-08-23 10:12:03 -0400
commit08f360355a0f47b35df355aae6ba88957b0e3a8d (patch)
tree3c6ed241ef27f287b231688a7a30241f1a20ea1f /tests/test_runner
parent69071e7f518955e242ad25ae9490ddb1b3bb8d0b (diff)
Fixed #29704 -- Fixed manage.py test --testrunner if it isn't followed by an equals sign.
Diffstat (limited to 'tests/test_runner')
-rw-r--r--tests/test_runner/tests.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_runner/tests.py b/tests/test_runner/tests.py
index eb89ad79f8..9717d329c1 100644
--- a/tests/test_runner/tests.py
+++ b/tests/test_runner/tests.py
@@ -201,6 +201,15 @@ class CustomTestRunnerOptionsCmdlineTests(AdminScriptTestCase):
def tearDown(self):
self.remove_settings('settings.py')
+ def test_testrunner_option(self):
+ args = [
+ 'test', '--testrunner', 'test_runner.runner.CustomOptionsTestRunner',
+ '--option_a=bar', '--option_b=foo', '--option_c=31337'
+ ]
+ out, err = self.run_django_admin(args, 'test_project.settings')
+ self.assertNoOutput(err)
+ self.assertOutput(out, 'bar:foo:31337')
+
def test_testrunner_equals(self):
args = [
'test', '--testrunner=test_runner.runner.CustomOptionsTestRunner',