Skip to content

Commit

Permalink
tests: Update tests for API.pause_all
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Oct 10, 2019
1 parent a27ecb2 commit 2d018a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_cli.py
Expand Up @@ -139,9 +139,9 @@ def test_pause_all_subcommand():
assert cli.subcommand_pause(server.api, do_all=True) == 0


def test_pause_all_subcommand_fails():
def test_pause_all_subcommand_doesnt_fail_with_already_paused_downloads():
with Aria2Server(port=7514, session=SESSIONS_DIR / "2-dl-in-queue.txt") as server:
assert cli.subcommand_pause(server.api, do_all=True) == 1
assert cli.subcommand_pause(server.api, do_all=True) == 0


def test_resume_subcommand(capsys):
Expand Down

0 comments on commit 2d018a3

Please sign in to comment.