()
| 175 | |
| 176 | |
| 177 | def test_json_get_wrong_default(): |
| 178 | input = _json_table( |
| 179 | data=[ |
| 180 | {"a": {"b": 1}}, |
| 181 | ] |
| 182 | ) |
| 183 | |
| 184 | with pytest.raises( |
| 185 | TypeError, |
| 186 | match=re.escape(rf"Default must be of type {pw.Json | None}, found {int}."), |
| 187 | ): |
| 188 | input.select(result=pw.this.data.get("a", 42).get("b")) |
| 189 | |
| 190 | |
| 191 | def test_json_get_item(): |
nothing calls this directly
no test coverage detected