diff options
author | mathieui <mathieui@mathieui.net> | 2021-03-26 12:42:03 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2021-04-02 17:44:36 +0200 |
commit | ef772d8b2aaba697549b63173de9e0291691d11c (patch) | |
tree | 38b9aa63f667ad4bc784f26a4f2855daf2d39904 /test/test_completion.py | |
parent | 84afe4938dfa40aff388e48c1c0b159469656839 (diff) | |
download | poezio-ef772d8b2aaba697549b63173de9e0291691d11c.tar.gz poezio-ef772d8b2aaba697549b63173de9e0291691d11c.tar.bz2 poezio-ef772d8b2aaba697549b63173de9e0291691d11c.tar.xz poezio-ef772d8b2aaba697549b63173de9e0291691d11c.zip |
fix: failing tests
Diffstat (limited to 'test/test_completion.py')
-rw-r--r-- | test/test_completion.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/test_completion.py b/test/test_completion.py index 620b5658..1a970470 100644 --- a/test/test_completion.py +++ b/test/test_completion.py @@ -5,15 +5,19 @@ Test the completions methods on an altered input object. import string import pytest import random +from poezio import config +from poezio.windows import Input + class ConfigShim(object): def get(self, *args, **kwargs): return '' + def getbool(self, *args, **kwargs): + return False + -from poezio import config config.config = ConfigShim() -from poezio.windows import Input class SubInput(Input): def resize(self, *args, **kwargs): @@ -26,6 +30,8 @@ class SubInput(Input): @pytest.fixture(scope="function") def input_obj(): + from poezio.windows import base_wins + base_wins.TAB_WIN = True obj = SubInput() obj.reset_completion() return obj |