We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39f9306 commit 241f2a8Copy full SHA for 241f2a8
testing/conftest.py
@@ -22,6 +22,15 @@ def restore_tracing():
22
sys.settrace(orig_trace)
23
24
25
+@pytest.fixture(autouse=True)
26
+def set_column_width(monkeypatch: pytest.MonkeyPatch) -> None:
27
+ """
28
+ Force terminal width to 80: some tests check the formatting of --help, which is sensible
29
+ to terminal width.
30
31
+ monkeypatch.setenv("COLUMNS", "80")
32
+
33
34
@pytest.hookimpl(wrapper=True, tryfirst=True)
35
def pytest_collection_modifyitems(items) -> Generator[None, None, None]:
36
"""Prefer faster tests.
0 commit comments