test(api): give the deep-nesting cache payload case a short id

This commit is contained in:
imSp4rky
2026-10-20 20:31:20 -06:00
parent 012bf45270
commit 1b20b2bbf9
@@ -37,7 +37,7 @@ def test_plain_json_is_safe(text) -> None:
'{"py/reduce": [{"py/function": "builtins.print"}, {"py/tuple": ["x"]}]}',
'{"py/object": "datetime.datetime", "__reduce__": [{"py/type": "collections.OrderedDict"}, []]}',
'{"py/object": "datetime.datetime", "py/state": {}}',
"[" * 100000 + "]" * 100000,
pytest.param("[" * 100000 + "]" * 100000, id="deep-nesting"),
],
)
def test_unsafe_payload_is_refused(text) -> None: