From 001bade6726c15ee6efb792d73e50509d386d7bd Mon Sep 17 00:00:00 2001 From: Ryan Barrett Date: Thu, 1 Aug 2024 12:51:50 -0700 Subject: [PATCH] test noop: switch test_cache_policy to use ndb keys, not datastore API keys https://github.com/googleapis/python-ndb/issues/987 --- tests/test_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_common.py b/tests/test_common.py index 8f9c267c..46076766 100644 --- a/tests/test_common.py +++ b/tests/test_common.py @@ -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'), @@ -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 (