mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-06 07:55:10 +00:00
fix(console): print all console output at the terminal width when wide_output is on
This commit is contained in:
@@ -77,6 +77,12 @@ def no_worker_handlers(monkeypatch: pytest.MonkeyPatch) -> None:
|
||||
monkeypatch.setattr(console, "_notice_handler", None)
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def fixed_console_width(monkeypatch: pytest.MonkeyPatch) -> None:
|
||||
"""Hold the shared console at 80 columns, whatever the terminal and the user's ``wide_output``."""
|
||||
monkeypatch.setattr(console.console, "_width", 80)
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def fresh_proxy_catalogues() -> None:
|
||||
"""Fetch each proxy provider catalogue again, so one test's stub never answers another test."""
|
||||
|
||||
Reference in New Issue
Block a user