Refactor Gallery downloader

This commit is contained in:
Serene-Arc
2021-03-17 16:58:29 +10:00
committed by Ali Parlakci
parent 3e9a846e2e
commit ed26907e0d
2 changed files with 18 additions and 43 deletions

View File

@@ -11,8 +11,8 @@ from bulkredditdownloader.site_downloaders.gallery import Gallery
@pytest.mark.online
@pytest.mark.reddit
@pytest.mark.parametrize(('test_submission_id', 'expected_len'), (
('ljyy27', 4),
('m6lvrh', 4),
('ljyy27', 4),
))
def test_gallery(test_submission_id: str, expected_len: int, reddit_instance: praw.Reddit):
test_submission = reddit_instance.submission(id=test_submission_id)