Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ewjoachim committed Jul 24, 2024
1 parent 7b5bf1a commit 7ccaf5c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,14 @@ def test_main(mocker):
["shell"],
{
"command": "shell",
"args": [],
"shell_command": [],
},
),
(
["shell", "list_jobs"],
{
"command": "shell",
"args": ["list_jobs"],
"shell_command": ["list_jobs"],
},
),
],
Expand Down Expand Up @@ -288,7 +288,7 @@ def mytask(a):

await mytask.defer_async(a=1)

await cli.shell_(app=app, args=["list_jobs"])
await cli.shell_(app=app, shell_command=["list_jobs"])

out, _ = capsys.readouterr()

Expand All @@ -304,7 +304,7 @@ def mytask(a):

mocker.patch("sys.stdin", io.StringIO("list_jobs\nexit\n"))

await cli.shell_(app=app, args=[])
await cli.shell_(app=app, shell_command=[])

out, _ = capsys.readouterr()

Expand Down

0 comments on commit 7ccaf5c

Please sign in to comment.