(value)
| 343 | [1, 0, 1.6, "1", "0", "true", "True"], |
| 344 | ) |
| 345 | def 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 | |
| 354 | def test_json_input(): |
nothing calls this directly
no test coverage detected