()
| 189 | |
| 190 | |
| 191 | def test_json_get_item(): |
| 192 | input = _json_table( |
| 193 | data=[ |
| 194 | {"a": {"b": 1}}, |
| 195 | {"a": {"b": None}}, |
| 196 | {}, |
| 197 | {"a": {}}, |
| 198 | {"a": [1, 2, 3]}, |
| 199 | {"a": 42}, |
| 200 | {"a": None}, |
| 201 | ] |
| 202 | ) |
| 203 | |
| 204 | result = input.select(result=pw.this.data["a"]["b"]) |
| 205 | |
| 206 | assert_table_equality( |
| 207 | _json_table(result=[1, None, None, None, None, None, None]), |
| 208 | result, |
| 209 | ) |
| 210 | |
| 211 | |
| 212 | def test_json_get_array_index(): |
nothing calls this directly
no test coverage detected