mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
[1.5.x] Fixed #19833 -- Fixed import parameter encoding in get_runner
Thanks Danilo Bargen for the report.
Backport of 63236161
from master.
This commit is contained in:
parent
461d6e2295
commit
41848b078a
2 changed files with 10 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
"""
|
||||
Tests for django test runner
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
from __future__ import absolute_import, unicode_literals
|
||||
|
||||
import sys
|
||||
from optparse import make_option
|
||||
|
@ -150,6 +150,11 @@ class ManageCommandTests(unittest.TestCase):
|
|||
self.assertTrue(MockTestRunner.invoked,
|
||||
"The custom test runner has not been invoked")
|
||||
|
||||
def test_bad_test_runner(self):
|
||||
with self.assertRaises(AttributeError):
|
||||
call_command('test', 'sites',
|
||||
testrunner='regressiontests.test_runner.NonExistentRunner')
|
||||
|
||||
|
||||
class CustomOptionsTestRunner(simple.DjangoTestSuiteRunner):
|
||||
option_list = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue