From 6e13b5df3c4680bf718ff4b4310041af9316eb16 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 14 Oct 2026 02:16:36 +0200 Subject: [PATCH] cultcache-py tests: open the converted store under the default definitions without the unlisted type Co-Authored-By: Claude Opus 5.5 --- packages/cultcache-py/tests/test_payload_codec.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/cultcache-py/tests/test_payload_codec.py b/packages/cultcache-py/tests/test_payload_codec.py index fefc9216..5ff1a30d 100644 --- a/packages/cultcache-py/tests/test_payload_codec.py +++ b/packages/cultcache-py/tests/test_payload_codec.py @@ -674,7 +674,12 @@ class ConvertTests(unittest.TestCase): {item.key: definition.decode_payload(item.payload) for item in opened.pull_all() if item.type == "tests.mig"}, {"k1": 5, "k2": 53, "k3": {"n": 1}}, ) - self.assertEqual(sorted(self._pull_with(opened, MESSAGEPACK_PAYLOAD_CODEC), key=str), [5, 53, {"n": 1}]) + plain = self._filled(make, f"plain-{label}", records) + plain_destination = self.directory / f"plain-{label}.out" + convert(plain, plain_destination, [definition]) + self.assertEqual( + sorted(self._pull_with(type(store)(plain_destination), MESSAGEPACK_PAYLOAD_CODEC), key=str), [5, 53, {"n": 1}] + ) raw = destination.read_bytes() if label == "jsonl": self.assertEqual(raw[:1], b"{")