mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Simplified call_command() calls.
This commit is contained in:
committed by
Mariusz Felisiak
parent
a564f44350
commit
89c8c2e831
@@ -351,7 +351,8 @@ class CommandTests(SimpleTestCase):
|
||||
management.call_command(
|
||||
command,
|
||||
*args,
|
||||
**{**kwargs, "stdout": out},
|
||||
**kwargs,
|
||||
stdout=out,
|
||||
)
|
||||
self.assertIn("foo_list=[1, 2]", out.getvalue())
|
||||
|
||||
@@ -378,7 +379,7 @@ class CommandTests(SimpleTestCase):
|
||||
)
|
||||
self.assertIn(expected_output, out.getvalue())
|
||||
out.truncate(0)
|
||||
management.call_command("required_constant_option", **{**args, "stdout": out})
|
||||
management.call_command("required_constant_option", **args, stdout=out)
|
||||
self.assertIn(expected_output, out.getvalue())
|
||||
|
||||
def test_subparser(self):
|
||||
|
||||
Reference in New Issue
Block a user