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

Function test_json_get_item_optional_json

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

Source from the content-addressed store, hash-verified

236
237
238def test_json_get_item_optional_json():
239 input = _json_table(data=[{}])
240
241 with pytest.raises(
242 TypeError,
243 match=re.escape(f"Cannot get from {pw.Json | None}."),
244 ):
245 input.select(result=pw.this.data.get("a")["b"])
246
247
248@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

_json_tableFunction · 0.85
selectMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected