From afc2a6416bc08b6009e7f4d27af132cf65705259 Mon Sep 17 00:00:00 2001 From: Serene-Arc Date: Fri, 3 Sep 2021 16:39:00 +1000 Subject: [PATCH] Add integration test --- tests/integration_tests/test_download_integration.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/integration_tests/test_download_integration.py b/tests/integration_tests/test_download_integration.py index 305fe99..6fecd73 100644 --- a/tests/integration_tests/test_download_integration.py +++ b/tests/integration_tests/test_download_integration.py @@ -45,6 +45,7 @@ def create_basic_args_for_download_runner(test_args: list[str], run_path: Path): ['-s', 'trollxchromosomes', '-L', 1, '--sort', 'new'], ['-s', 'trollxchromosomes', '-L', 1, '--time', 'day', '--sort', 'new'], ['-s', 'trollxchromosomes', '-L', 1, '--search', 'women'], + ['-s', 'hentai', '-L', 10, '--search', 'red'], ['-s', 'trollxchromosomes', '-L', 1, '--time', 'day', '--search', 'women'], ['-s', 'trollxchromosomes', '-L', 1, '--sort', 'new', '--search', 'women'], ['-s', 'trollxchromosomes', '-L', 1, '--time', 'day', '--sort', 'new', '--search', 'women'], @@ -55,6 +56,7 @@ def test_cli_download_subreddits(test_args: list[str], tmp_path: Path): result = runner.invoke(cli, test_args) assert result.exit_code == 0 assert 'Added submissions from subreddit ' in result.output + assert 'Downloaded submission' in result.output @pytest.mark.online