MCPcopy
hub / github.com/pathwaycom/pathway / test_json_get_simple

Function test_json_get_simple

python/pathway/tests/test_json.py:65–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63
64
65def test_json_get_simple():
66 input = _json_table(data=[{"field": 1}, {"field": 2}])
67
68 result = input.select(ret=pw.this.data.get("field"))
69
70 assert_table_equality(
71 _optional_json_table(ret=[1, 2]),
72 result,
73 )
74
75
76def test_json_get_none():

Callers

nothing calls this directly

Calls 4

_json_tableFunction · 0.85
_optional_json_tableFunction · 0.85
selectMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected