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

Function test_json_get_none

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

Source from the content-addressed store, hash-verified

74
75
76def test_json_get_none():
77 input = _json_table(data=[{}])
78
79 with pytest.raises(
80 TypeError, match=re.escape(f"Cannot get from {pw.Json | None}.")
81 ):
82 input.select(result=pw.this.data.get("a").get("b"))
83
84
85def test_json_get_default():

Callers

nothing calls this directly

Calls 3

_json_tableFunction · 0.85
selectMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected