From 2d018a3e785545e70f7c0a1a61700a4b22a9828c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Mazzucotelli?= Date: Thu, 10 Oct 2019 15:51:03 +0200 Subject: [PATCH] tests: Update tests for API.pause_all --- tests/test_cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_cli.py b/tests/test_cli.py index 4177a53..81aa3df 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -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):