(tmp_path, basetemp, monkeypatch)
| 92 | |
| 93 | @pytest.mark.parametrize("basetemp", ["", ".", ".."]) |
| 94 | def test_validate_basetemp_fails(tmp_path, basetemp, monkeypatch): |
| 95 | monkeypatch.chdir(str(tmp_path)) |
| 96 | msg = "basetemp must not be empty, the current working directory or any parent directory of it" |
| 97 | with pytest.raises(argparse.ArgumentTypeError, match=msg): |
| 98 | if basetemp: |
| 99 | basetemp = tmp_path / basetemp |
| 100 | validate_basetemp(basetemp) |
| 101 | |
| 102 | |
| 103 | def test_validate_basetemp_integration(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected