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

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