cultcache-py tests: open the converted store under the default definitions without the unlisted type
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
cc9612ce9a
commit
6e13b5df3c
1 changed files with 6 additions and 1 deletions
|
|
@ -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"{")
|
||||
|
|
|
|||
Loading…
Reference in a new issue