MCPcopy Create free account
hub / github.com/pathwaycom/pathway / test_json_as_bool_wrong_values

Function test_json_as_bool_wrong_values

python/pathway/tests/test_json.py:345–351  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

343 [1, 0, 1.6, "1", "0", "true", "True"],
344)
345def test_json_as_bool_wrong_values(value):
346 input = _json_table(data=[{"field": value}])
347
348 input.select(result=pw.this.data.get("field").as_bool())
349
350 with pytest.raises(ValueError):
351 run_all()
352
353
354def test_json_input():

Callers

nothing calls this directly

Calls 5

run_allFunction · 0.90
_json_tableFunction · 0.85
selectMethod · 0.45
as_boolMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected