cultcache-py tests: fix the unterminated newline literals of the JSON Lines bytes test (160048b8 does not import)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
160048b896
commit
9dd58010ba
1 changed files with 2 additions and 4 deletions
|
|
@ -831,10 +831,8 @@ class ConvertTests(unittest.TestCase):
|
|||
later = CultCacheEnvelope(key="é", type="b.t", payload=b"x", stored_at="T1")
|
||||
earlier = CultCacheEnvelope(key="a", type="a.t", payload=b"yy", stored_at="T2")
|
||||
expected = (
|
||||
'{"key": "a", "payload": "eXk=", "stored_at": "T2", "type": "a.t"}
|
||||
'
|
||||
'{"key": "é", "payload": "eA==", "stored_at": "T1", "type": "b.t"}
|
||||
'
|
||||
'{"key": "a", "payload": "eXk=", "stored_at": "T2", "type": "a.t"}\n'
|
||||
'{"key": "é", "payload": "eA==", "stored_at": "T1", "type": "b.t"}\n'
|
||||
).encode("utf-8")
|
||||
self.assertEqual(JsonLinesBackingStore._file_bytes([later, earlier]), expected)
|
||||
self.assertEqual(JsonLinesBackingStore._file_bytes([]), b"")
|
||||
|
|
|
|||
Loading…
Reference in a new issue