Skip to content

Commit

Permalink
test noop: switch test_cache_policy to use ndb keys, not datastore AP…
Browse files Browse the repository at this point in the history
  • Loading branch information
snarfed committed Aug 1, 2024
1 parent e9dc38c commit 001bade
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def test_host_url(self):

def test_cache_policy(self):
for id in 'did:plc:foo', 'did:web:foo':
self.assertTrue(common.cache_policy(Object(id=id).key._key))
self.assertTrue(common.cache_policy(Object(id=id).key))

for obj in (
ATProto(id='alice'),
Expand All @@ -123,7 +123,7 @@ def test_cache_policy(self):
Object(id='at://did:plc:user/app.bsky.actor.profile/self'),
Follower(id='abc'),
):
self.assertFalse(common.cache_policy(obj.key._key))
self.assertFalse(common.cache_policy(obj.key))

def test_global_cache_timeout_policy(self):
for good in (
Expand Down

0 comments on commit 001bade

Please sign in to comment.