mirror of
https://github.com/django/django.git
synced 2025-11-17 02:24:22 +00:00
Fixed #29704 -- Fixed manage.py test --testrunner if it isn't followed by an equals sign.
This commit is contained in:
parent
69071e7f51
commit
08f360355a
3 changed files with 28 additions and 6 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue