Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Am K committed Sep 16, 2024
1 parent ecc47d2 commit 8e4640b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class MyRequest:

def get():
r = requests.get(MyRequest.url)
return dict(r.headers), r.text
return dict(r.headers), r.content


class CacheTest(unittest.TestCase):
Expand All @@ -26,7 +26,7 @@ def test_cache(self):
self.assertEqual(c.has("foo"), False)
self.assertEqual(c.set("spam", "eggs", ttl=3), True)
self.assertEqual(c.has("spam"), True)
time.sleep(3)
time.sleep(1)
self.assertEqual(c.has("spam"), False)
self.assertEqual(c.size(), 0)

Expand Down

0 comments on commit 8e4640b

Please sign in to comment.