Add tests
This commit is contained in:
parent
9ba62f8c97
commit
4143c53ff1
2 changed files with 4 additions and 2 deletions
|
@ -36,6 +36,8 @@ def create_basic_args_for_archive_runner(test_args: list[str], run_path: Path):
|
||||||
['-l', 'gstd4hk'],
|
['-l', 'gstd4hk'],
|
||||||
['-l', 'm2601g', '-f', 'yaml'],
|
['-l', 'm2601g', '-f', 'yaml'],
|
||||||
['-l', 'n60t4c', '-f', 'xml'],
|
['-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):
|
def test_cli_archive_single(test_args: list[str], tmp_path: Path):
|
||||||
runner = CliRunner()
|
runner = CliRunner()
|
||||||
|
|
|
@ -232,8 +232,8 @@ def test_cli_download_long(test_args: list[str], tmp_path: Path):
|
||||||
['--subreddit', 'donaldtrump', '-L', 10], # Banned subreddit
|
['--subreddit', 'donaldtrump', '-L', 10], # Banned subreddit
|
||||||
['--user', 'djnish', '--user', 'helen_darten', '-m', 'cuteanimalpics', '-L', 10],
|
['--user', 'djnish', '--user', 'helen_darten', '-m', 'cuteanimalpics', '-L', 10],
|
||||||
['--subreddit', 'friends', '-L', 10],
|
['--subreddit', 'friends', '-L', 10],
|
||||||
['-l', 'ijy4ch'],
|
['-l', 'ijy4ch'], # user deleted post
|
||||||
['-l', 'kw4wjm'],
|
['-l', 'kw4wjm'], # post from banned subreddit
|
||||||
))
|
))
|
||||||
def test_cli_download_soft_fail(test_args: list[str], tmp_path: Path):
|
def test_cli_download_soft_fail(test_args: list[str], tmp_path: Path):
|
||||||
runner = CliRunner()
|
runner = CliRunner()
|
||||||
|
|
Loading…
Reference in a new issue