mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-16 14:05:10 +00:00
test(api): give the deep-nesting cache payload case a short id
This commit is contained in:
@@ -37,7 +37,7 @@ def test_plain_json_is_safe(text) -> None:
|
|||||||
'{"py/reduce": [{"py/function": "builtins.print"}, {"py/tuple": ["x"]}]}',
|
'{"py/reduce": [{"py/function": "builtins.print"}, {"py/tuple": ["x"]}]}',
|
||||||
'{"py/object": "datetime.datetime", "__reduce__": [{"py/type": "collections.OrderedDict"}, []]}',
|
'{"py/object": "datetime.datetime", "__reduce__": [{"py/type": "collections.OrderedDict"}, []]}',
|
||||||
'{"py/object": "datetime.datetime", "py/state": {}}',
|
'{"py/object": "datetime.datetime", "py/state": {}}',
|
||||||
"[" * 100000 + "]" * 100000,
|
pytest.param("[" * 100000 + "]" * 100000, id="deep-nesting"),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
def test_unsafe_payload_is_refused(text) -> None:
|
def test_unsafe_payload_is_refused(text) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user