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