diff options
| author | Nick Pope <nick@nickpope.me.uk> | 2023-07-27 09:40:42 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-07-27 15:48:47 +0200 |
| commit | 89c8c2e8311bd31b79c0829055d1e494ab88b801 (patch) | |
| tree | cf9259e2ab0c32e895e5084af0c9079cd36b3d56 /tests/user_commands | |
| parent | a564f44350afc4823b9ff6eb14c56e8793ed4b31 (diff) | |
Simplified call_command() calls.
Diffstat (limited to 'tests/user_commands')
| -rw-r--r-- | tests/user_commands/tests.py | 5 |
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): |
