add test
This commit is contained in:
parent
ce4017db17
commit
bcce19100b
1 changed files with 10 additions and 0 deletions
|
@ -16,6 +16,16 @@ def test_get_comments(test_submission_id: str, min_comments: int, reddit_instanc
|
|||
assert len(results) >= min_comments
|
||||
|
||||
|
||||
@pytest.mark.online
|
||||
@pytest.mark.reddit
|
||||
@pytest.mark.parametrize(("test_submission_id", "min_comments"), (("m3reby", 27),))
|
||||
def test_skip_comments(test_submission_id: str, min_comments: int, reddit_instance: praw.Reddit):
|
||||
test_submission = reddit_instance.submission(id=test_submission_id)
|
||||
test_archive_entry = SubmissionArchiveEntry(test_submission, false)
|
||||
results = test_archive_entry._get_comments()
|
||||
assert len(results) == 0
|
||||
|
||||
|
||||
@pytest.mark.online
|
||||
@pytest.mark.reddit
|
||||
@pytest.mark.parametrize(
|
||||
|
|
Loading…
Reference in a new issue