()
| 58 | |
| 59 | |
| 60 | def test_path_map_item() -> None: |
| 61 | path = AccessPath.root().map_item("foo") |
| 62 | assert isinstance(path, AccessPath) |
| 63 | steps = path.to_steps() |
| 64 | assert len(steps) == 1 |
| 65 | assert steps[0].kind == AccessKind.MAP_ITEM |
| 66 | assert steps[0].key == "foo" |
| 67 | assert path.parent == AccessPath.root() |
| 68 | |
| 69 | |
| 70 | def test_path_missing_map_item() -> None: |