mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Simplified call_command() calls.
This commit is contained in:
parent
a564f44350
commit
89c8c2e831
4 changed files with 8 additions and 10 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue