diff --git a/tests/test_content.py b/tests/test_content.py index 5860a3f..41a0e74 100644 --- a/tests/test_content.py +++ b/tests/test_content.py @@ -264,7 +264,8 @@ def test_content_subreddit_from_name(reddit, terminal): for name in names: with terminal.loader(): SubredditContent.from_name(reddit, name, terminal.loader) - assert isinstance(terminal.loader.exception, exceptions.SubredditError) + assert isinstance(terminal.loader.exception, + praw.errors.InvalidSubreddit) # Front page alias name = '/r/front/rising' @@ -351,4 +352,4 @@ def test_content_subscription_empty(terminal): with terminal.loader(): SubscriptionContent(subscriptions, terminal.loader) - assert isinstance(terminal.loader.exception, exceptions.SubscriptionError) \ No newline at end of file + assert isinstance(terminal.loader.exception, exceptions.SubscriptionError)