From 4852ba0f09ececeb3f542801bedf981217ba6a4c Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Sat, 20 Jul 2019 17:30:42 +0200 Subject: Refactor Object to be a dataclass --- tests/test_memory_store.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_memory_store.py') diff --git a/tests/test_memory_store.py b/tests/test_memory_store.py index 899a776..56f6185 100644 --- a/tests/test_memory_store.py +++ b/tests/test_memory_store.py @@ -8,12 +8,12 @@ class TestMemoryStore(unittest.TestCase): def setUp(self): self.store = memory.Store() self.oid = 'https://test/object/12345' - self.obj = objects.Object(id=self.oid) + self.obj = objects.Object(ap_id=self.oid) self.store.add(self.obj) def test_add_object(self): oid = 'https://test/object/12345' - obj = objects.Object(id=oid) + obj = objects.Object(ap_id=oid) self.store.add(obj) self.assertIn(oid, self.store.objects) -- cgit v1.2.3