def METHOD_NAME(self, request: pytest.FixtureRequest, monkeypatch: pytest.MonkeyPatch):
    isatty = not request.function.__name__.endswith("_no_tty")
    monkeypatch.setattr("sys.stdin.isatty", lambda: isatty)