diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-04-01 04:07:02 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-04-01 04:07:02 +0000 |
commit | 4d83eda2300105d107fd703c017be8b8264de07c (patch) | |
tree | 35e455d256704ad339d9d1b4bd472cda53609a53 /test | |
parent | Releasing debian version 1.24.3-1. (diff) | |
download | mycli-4d83eda2300105d107fd703c017be8b8264de07c.tar.xz mycli-4d83eda2300105d107fd703c017be8b8264de07c.zip |
Merging upstream version 1.24.4.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | test/test_main.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/test_main.py b/test/test_main.py index 00fdc1b..7731603 100644 --- a/test/test_main.py +++ b/test/test_main.py @@ -1,4 +1,5 @@ import os +import shutil import click from click.testing import CliRunner @@ -258,13 +259,13 @@ def test_reserved_space_is_integer(): def stub_terminal_size(): return (5, 5) - old_func = click.get_terminal_size + old_func = shutil.get_terminal_size - click.get_terminal_size = stub_terminal_size + shutil.get_terminal_size = stub_terminal_size mycli = MyCli() assert isinstance(mycli.get_reserved_space(), int) - click.get_terminal_size = old_func + shutil.get_terminal_size = old_func def test_list_dsn(): |