1
0
Fork 0
mirror of synced 2024-06-26 10:00:20 +12:00

Add tests

This commit is contained in:
Serene-Arc 2022-11-21 15:47:13 +10:00
parent 9ba62f8c97
commit 4143c53ff1
2 changed files with 4 additions and 2 deletions

View file

@ -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()

View file

@ -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()