MCPcopy
hub / github.com/pyodide/pyodide / test_as_json_adaptor_stringify

Function test_as_json_adaptor_stringify

src/tests/test_pyproxy.py:2748–2754  ·  view source on GitHub ↗
(selenium, o)

Source from the content-addressed store, hash-verified

2746)
2747@run_in_pyodide
2748def test_as_json_adaptor_stringify(selenium, o):
2749 from json import loads
2750
2751 from pyodide.code import run_js
2752
2753 f = run_js("(o) => JSON.stringify(o.asJsJson())")
2754 assert loads(f(o)) == o
2755
2756
2757@run_in_pyodide

Callers

nothing calls this directly

Calls 2

run_jsFunction · 0.90
fFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…