(monkeypatch: pytest.MonkeyPatch)
| 984 | |
| 985 | |
| 986 | def fail_project_scripts(monkeypatch: pytest.MonkeyPatch) -> None: |
| 987 | def failing(command: list[str], **kwargs: Any) -> None: |
| 988 | raise subprocess.CalledProcessError( |
| 989 | SCRIPT_EXIT_CODE, command, output=f"{SECRET} failed" |
| 990 | ) |
| 991 | |
| 992 | monkeypatch.setattr(subprocess, "run", failing) |
| 993 | |
| 994 | |
| 995 | @pytest.mark.parametrize( |
no outgoing calls
no test coverage detected