1
0
Fork 0
mirror of synced 2024-10-01 01:30:52 +13:00
This commit is contained in:
Armin Samii 2023-06-17 20:53:02 -04:00
parent ce4017db17
commit bcce19100b

View file

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