Skip to content

Commit

Permalink
Make tests also patch os.get_terminal_size
Browse files Browse the repository at this point in the history
  • Loading branch information
isidentical committed Apr 14, 2022
1 parent 8a434b1 commit cdd39a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_cli_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def fake_terminal_size(*args, **kwargs):
# Setting COLUMNS as an env var is required for 3.8<
monkeypatch.setitem(os.environ, 'COLUMNS', str(PREDEFINED_TERMINAL_SIZE[0]))
monkeypatch.setattr(shutil, 'get_terminal_size', fake_terminal_size)
monkeypatch.setattr(os, 'get_terminal_size', fake_terminal_size)


@pytest.mark.parametrize(
Expand Down

0 comments on commit cdd39a6

Please sign in to comment.