diff --git a/bulkredditdownloader/tests/downloaders/test_gallery.py b/bulkredditdownloader/tests/downloaders/test_gallery.py index aa8a57e..2b29a4b 100644 --- a/bulkredditdownloader/tests/downloaders/test_gallery.py +++ b/bulkredditdownloader/tests/downloaders/test_gallery.py @@ -14,6 +14,7 @@ def reddit_submission(reddit_instance) -> praw.models.Submission: @pytest.mark.online +@pytest.mark.reddit def test_gallery(reddit_submission: praw.models.Submission): gallery = Gallery(reddit_submission) results = gallery.find_resources() diff --git a/bulkredditdownloader/tests/test_file_name_formatter.py b/bulkredditdownloader/tests/test_file_name_formatter.py index abe67ae..7d18dd2 100644 --- a/bulkredditdownloader/tests/test_file_name_formatter.py +++ b/bulkredditdownloader/tests/test_file_name_formatter.py @@ -43,6 +43,7 @@ def test_format_name_mock(format_string: str, expected: str, submission: Mock): @pytest.mark.online +@pytest.mark.reddit @pytest.mark.parametrize(('format_string', 'expected'), (('{SUBREDDIT}', 'Mindustry'), ('{REDDITOR}', 'Gamer_player_boi'), @@ -57,6 +58,7 @@ def test_format_name_real(format_string: str, expected: str, reddit_submission: @pytest.mark.online +@pytest.mark.reddit @pytest.mark.parametrize(('format_string_directory', 'format_string_file', 'expected'), (('{SUBREDDIT}', '{POSTID}', 'test/Mindustry/lgilgt.png'), ('{SUBREDDIT}', '{TITLE}_{POSTID}', diff --git a/pytest.ini b/pytest.ini index ccd0a19..428fbcb 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,3 +1,4 @@ [pytest] markers = - online: tests require a connection to the internet \ No newline at end of file + online: tests require a connection to the internet + reddit: tests require a connection to Reddit \ No newline at end of file