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

Function test_json_dict_get_int_index

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

Source from the content-addressed store, hash-verified

135
136
137def test_json_dict_get_int_index():
138 input = _json_table(
139 data=[
140 {"a": 1},
141 ]
142 )
143
144 result = input.select(result=pw.this.data.get(1))
145
146 assert_table_equality(
147 T(
148 """
149 | result
150 1 |
151 """
152 ).update_types(result=Optional[pw.Json]),
153 result,
154 )
155
156
157def test_json_array_get_str_index():

Callers

nothing calls this directly

Calls 5

TFunction · 0.90
_json_tableFunction · 0.85
update_typesMethod · 0.80
selectMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected