Adding test coverage

This commit is contained in:
Michael Lazar
2017-09-13 23:54:07 -04:00
parent c1a38853be
commit 7e1ee3e3b3
2 changed files with 441 additions and 206 deletions

View File

@@ -578,6 +578,13 @@ def test_content_cache(reddit):
reddit.handler.cache.clear()
assert not reddit.handler.cache
next(reddit.get_subreddit('python').get_hot())
assert reddit.handler.cache
# Evicting the cache should also remove the entry
reddit.handler.evict('https://api.reddit.com/r/python')
assert not reddit.handler.cache
def test_content_rate_limit(reddit, oauth, refresh_token):