Add integration test
This commit is contained in:
parent
4eeb423862
commit
f28f74cfc5
|
@ -199,3 +199,16 @@ def test_user_serv_fail(test_args: list[str], response: int, tmp_path: Path):
|
|||
result = runner.invoke(cli, test_args)
|
||||
assert result.exit_code == 0
|
||||
assert f"received {response} HTTP response" in result.output
|
||||
|
||||
|
||||
@pytest.mark.online
|
||||
@pytest.mark.reddit
|
||||
@pytest.mark.skipif(not does_test_config_exist, reason="A test config file is required for integration tests")
|
||||
@pytest.mark.parametrize("test_args", (["--skip-comments", "--link", "gxqapql"],))
|
||||
def test_cli_archive_skip_comments(test_args: list[str], tmp_path: Path):
|
||||
runner = CliRunner()
|
||||
test_args = create_basic_args_for_archive_runner(test_args, tmp_path)
|
||||
result = runner.invoke(cli, test_args)
|
||||
assert result.exit_code == 0
|
||||
assert "Converting comment" not in result.output
|
||||
assert "Retrieving full comment tree for submission" not in result.output
|
||||
|
|
Loading…
Reference in a new issue