MCPcopy
hub / github.com/pyodide/pyodide / test_jsproxy_implicit_iter

Function test_jsproxy_implicit_iter

src/tests/test_jsproxy.py:255–268  ·  view source on GitHub ↗
(selenium)

Source from the content-addressed store, hash-verified

253
254@run_in_pyodide
255def test_jsproxy_implicit_iter(selenium):
256 from pyodide.code import run_js
257
258 run_js(
259 """
260 self.ITER = [1, 2, 3];
261 """
262 )
263
264 from js import ITER, Object # type: ignore[attr-defined]
265
266 assert list(ITER) == [1, 2, 3]
267 assert list(ITER.values()) == [1, 2, 3]
268 assert list(Object.values(ITER)) == [1, 2, 3] # type: ignore[attr-defined]
269
270
271@run_in_pyodide

Callers

nothing calls this directly

Calls 2

run_jsFunction · 0.90
valuesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…