From 4143c53ff13b0c6c376c21696548c0d52e69cfe3 Mon Sep 17 00:00:00 2001 From: Serene-Arc Date: Mon, 21 Nov 2022 15:47:13 +1000 Subject: [PATCH] Add tests --- tests/integration_tests/test_archive_integration.py | 2 ++ tests/integration_tests/test_download_integration.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/integration_tests/test_archive_integration.py b/tests/integration_tests/test_archive_integration.py index 7b9a48d..3380820 100644 --- a/tests/integration_tests/test_archive_integration.py +++ b/tests/integration_tests/test_archive_integration.py @@ -36,6 +36,8 @@ def create_basic_args_for_archive_runner(test_args: list[str], run_path: Path): ['-l', 'gstd4hk'], ['-l', 'm2601g', '-f', 'yaml'], ['-l', 'n60t4c', '-f', 'xml'], + ['-l', 'ijy4ch'], # user deleted post + ['-l', 'kw4wjm'], # post from banned subreddit )) def test_cli_archive_single(test_args: list[str], tmp_path: Path): runner = CliRunner() diff --git a/tests/integration_tests/test_download_integration.py b/tests/integration_tests/test_download_integration.py index 44f62c2..83f972d 100644 --- a/tests/integration_tests/test_download_integration.py +++ b/tests/integration_tests/test_download_integration.py @@ -232,8 +232,8 @@ def test_cli_download_long(test_args: list[str], tmp_path: Path): ['--subreddit', 'donaldtrump', '-L', 10], # Banned subreddit ['--user', 'djnish', '--user', 'helen_darten', '-m', 'cuteanimalpics', '-L', 10], ['--subreddit', 'friends', '-L', 10], - ['-l', 'ijy4ch'], - ['-l', 'kw4wjm'], + ['-l', 'ijy4ch'], # user deleted post + ['-l', 'kw4wjm'], # post from banned subreddit )) def test_cli_download_soft_fail(test_args: list[str], tmp_path: Path): runner = CliRunner()