Fixed test.
This commit is contained in:
@@ -264,7 +264,8 @@ def test_content_subreddit_from_name(reddit, terminal):
|
|||||||
for name in names:
|
for name in names:
|
||||||
with terminal.loader():
|
with terminal.loader():
|
||||||
SubredditContent.from_name(reddit, name, 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
|
# Front page alias
|
||||||
name = '/r/front/rising'
|
name = '/r/front/rising'
|
||||||
|
|||||||
Reference in New Issue
Block a user