(stdin_tty: bool, stderr_tty: bool | None = None)
| 151 | |
| 152 | |
| 153 | def make_fake_sys(stdin_tty: bool, stderr_tty: bool | None = None) -> SimpleNamespace: |
| 154 | stderr = DummyStream(bool(stderr_tty)) |
| 155 | return SimpleNamespace( |
| 156 | stdin=SimpleNamespace(isatty=lambda: stdin_tty), |
| 157 | stderr=stderr, |
| 158 | exit=sys.exit, |
| 159 | ) |
| 160 | |
| 161 | |
| 162 | def patch_progress_mode(monkeypatch, mycli_main, mycli_main_batch) -> None: |
no test coverage detected