@@ -29,3 +29,9 @@ class TestGeneral(unittest.TestCase):
|
||||
self.assertIsInstance(data, requests.Response)
|
||||
with self.subTest(msg="Does not convert to json"):
|
||||
self.assertIsInstance(json.loads(data.content), dict)
|
||||
|
||||
def test_aww(self):
|
||||
if not isinstance(self.cog.r, praw.Reddit):
|
||||
self.skipTest("PRAW Reddit instance failed to create")
|
||||
post = self.cog.get_aww_post()
|
||||
self.assertIsInstance(post.url, str)
|
||||
|
||||
Reference in New Issue
Block a user