mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Fixed #15372 -- Switched to a startproject default layout that allows us to avoid sys.path hacks.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16964 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
f04af7080b
commit
38f1fe3b35
12 changed files with 237 additions and 143 deletions
|
@ -188,25 +188,25 @@ class CustomTestRunnerOptionsTests(AdminScriptTestCase):
|
|||
self.remove_settings('settings.py')
|
||||
|
||||
def test_default_options(self):
|
||||
args = ['test', '--settings=settings']
|
||||
args = ['test', '--settings=regressiontests.settings']
|
||||
out, err = self.run_django_admin(args)
|
||||
self.assertNoOutput(err)
|
||||
self.assertOutput(out, '1:2:3')
|
||||
|
||||
def test_default_and_given_options(self):
|
||||
args = ['test', '--settings=settings', '--option_b=foo']
|
||||
args = ['test', '--settings=regressiontests.settings', '--option_b=foo']
|
||||
out, err = self.run_django_admin(args)
|
||||
self.assertNoOutput(err)
|
||||
self.assertOutput(out, '1:foo:3')
|
||||
|
||||
def test_option_name_and_value_separated(self):
|
||||
args = ['test', '--settings=settings', '--option_b', 'foo']
|
||||
args = ['test', '--settings=regressiontests.settings', '--option_b', 'foo']
|
||||
out, err = self.run_django_admin(args)
|
||||
self.assertNoOutput(err)
|
||||
self.assertOutput(out, '1:foo:3')
|
||||
|
||||
def test_all_options_given(self):
|
||||
args = ['test', '--settings=settings', '--option_a=bar', '--option_b=foo', '--option_c=31337']
|
||||
args = ['test', '--settings=regressiontests.settings', '--option_a=bar', '--option_b=foo', '--option_c=31337']
|
||||
out, err = self.run_django_admin(args)
|
||||
self.assertNoOutput(err)
|
||||
self.assertOutput(out, 'bar:foo:31337')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue