(tmp_path: Path, description: str, p: str, expect_error: bool)
| 47 | ], |
| 48 | ) |
| 49 | def test_resolve_path(tmp_path: Path, description: str, p: str, expect_error: bool) -> None: |
| 50 | env = AgentToolContext(workdir=str(tmp_path)) |
| 51 | if expect_error: |
| 52 | with pytest.raises(ValueError): |
| 53 | resolve_path(env, p) |
| 54 | else: |
| 55 | assert resolve_path(env, p), description |
| 56 | |
| 57 | |
| 58 | @pytest.mark.parametrize("value", [True, False]) |
nothing calls this directly
no test coverage detected