Merge pull request #633 from chapmanjacobd/patch-3

fix: Redirect to /subreddits/search
This commit is contained in:
Serene
2022-07-17 11:17:52 +10:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@@ -447,7 +447,8 @@ def test_check_user_existence_banned(
@pytest.mark.reddit
@pytest.mark.parametrize(('test_subreddit_name', 'expected_message'), (
('donaldtrump', 'cannot be found'),
('submitters', 'private and cannot be scraped')
('submitters', 'private and cannot be scraped'),
('lhnhfkuhwreolo', 'does not exist')
))
def test_check_subreddit_status_bad(test_subreddit_name: str, expected_message: str, reddit_instance: praw.Reddit):
test_subreddit = reddit_instance.subreddit(test_subreddit_name)