summaryrefslogtreecommitdiff
path: root/test/test_completion.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_completion.py')
-rw-r--r--test/test_completion.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/test/test_completion.py b/test/test_completion.py
index 4c5bc400..620b5658 100644
--- a/test/test_completion.py
+++ b/test/test_completion.py
@@ -15,13 +15,19 @@ config.config = ConfigShim()
from poezio.windows import Input
+class SubInput(Input):
+ def resize(self, *args, **kwargs):
+ pass
+ def rewrite_text(self, *args, **kwargs):
+ pass
+ def refresh(self, *args, **kwargs):
+ pass
+
+
@pytest.fixture(scope="function")
def input_obj():
- obj = Input()
+ obj = SubInput()
obj.reset_completion()
- obj.resize = lambda: None
- obj.rewrite_text = lambda: None
- obj.refresh = lambda: None
return obj
@pytest.fixture(scope="module")