Restructure test fixtures

This commit is contained in:
Serene-Arc
2021-02-15 19:16:51 +10:00
committed by Ali Parlakci
parent ae5ed75226
commit a75e94e43e
3 changed files with 15 additions and 7 deletions

View File

@@ -1,7 +1,6 @@
#!/usr/bin/env python3
# coding=utf-8
import praw
import praw.models
import pytest
@@ -10,9 +9,8 @@ from bulkredditdownloader.site_downloaders.gallery import Gallery
@pytest.fixture()
def reddit_submission() -> praw.models.Submission:
rd = praw.Reddit(client_id='U-6gk4ZCh3IeNQ', client_secret='7CZHY6AmKweZME5s50SfDGylaPg', user_agent='test')
return rd.submission(id='ljyy27')
def reddit_submission(reddit_instance) -> praw.models.Submission:
return reddit_instance.submission(id='ljyy27')
def test_gallery(reddit_submission: praw.models.Submission):