summaryrefslogtreecommitdiff
path: root/tests/user_commands
diff options
context:
space:
mode:
authorNick Pope <nick@nickpope.me.uk>2023-07-27 09:40:42 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-07-27 15:48:47 +0200
commit89c8c2e8311bd31b79c0829055d1e494ab88b801 (patch)
treecf9259e2ab0c32e895e5084af0c9079cd36b3d56 /tests/user_commands
parenta564f44350afc4823b9ff6eb14c56e8793ed4b31 (diff)
Simplified call_command() calls.
Diffstat (limited to 'tests/user_commands')
-rw-r--r--tests/user_commands/tests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/user_commands/tests.py b/tests/user_commands/tests.py
index 408108b552..65e176620d 100644
--- a/tests/user_commands/tests.py
+++ b/tests/user_commands/tests.py
@@ -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):