summaryrefslogtreecommitdiff
path: root/tests/admin_scripts
diff options
context:
space:
mode:
authorFrançois Freitag <mail@franek.fr>2020-04-25 22:20:20 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-04-27 08:06:12 +0200
commit687cb38a05414f1e1fe6b255735d998bfc9741b4 (patch)
treebedfa3632a6e2210ba3dd0f951f087463f6a8b14 /tests/admin_scripts
parenta8d175c297ab4d05dda3e957e4fc64b261148904 (diff)
Removed unnecessary capturing/hiding of stdout/stderr in various tests.
Diffstat (limited to 'tests/admin_scripts')
-rw-r--r--tests/admin_scripts/tests.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py
index 222d55f023..d0af160c5f 100644
--- a/tests/admin_scripts/tests.py
+++ b/tests/admin_scripts/tests.py
@@ -1366,8 +1366,7 @@ class ManageTestserver(SimpleTestCase):
@mock.patch.object(LoaddataCommand, 'handle', return_value='')
@mock.patch.object(RunserverCommand, 'handle', return_value='')
def test_params_to_runserver(self, mock_runserver_handle, mock_loaddata_handle, mock_create_test_db):
- out = StringIO()
- call_command('testserver', 'blah.json', stdout=out)
+ call_command('testserver', 'blah.json')
mock_runserver_handle.assert_called_with(
addrport='',
force_color=False,
@@ -1678,7 +1677,7 @@ class CommandTypes(AdminScriptTestCase):
A command called from the command line should close connections after
being executed (#21255).
"""
- command = BaseCommand(stderr=StringIO())
+ command = BaseCommand()
command.check = lambda: []
command.handle = lambda *args, **kwargs: args
with mock.patch('django.core.management.base.connections') as mock_connections: