We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba1281a commit 135e923Copy full SHA for 135e923
tests/func/utils/test_strict_yaml.py
@@ -323,12 +323,16 @@ def force_posixpath(mocker):
323
324
325
@pytest.fixture
326
-def fixed_width_term(mocker):
+def fixed_width_term(mocker, monkeypatch):
327
"""Fixed width console."""
328
from rich.console import Console
329
330
+ from dvc.ui import ui
331
+
332
+ width = 80 + ui.rich_console.legacy_windows
333
334
mocker.patch.object(
- Console, "width", new_callable=mocker.PropertyMock(return_value=80)
335
+ Console, "width", new_callable=mocker.PropertyMock(return_value=width)
336
)
337
338
0 commit comments