diff options
author | mathieui <mathieui@mathieui.net> | 2018-12-15 15:19:27 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2018-12-15 15:19:27 +0100 |
commit | e992107ecff9a2f3f1282a87bdc8edfadcd01090 (patch) | |
tree | ba8580278d4640ad9aff01bca25fdd894d7d54a0 /test | |
parent | ce729114bc46898477d2cce81655e7372b9030e3 (diff) | |
download | poezio-e992107ecff9a2f3f1282a87bdc8edfadcd01090.tar.gz poezio-e992107ecff9a2f3f1282a87bdc8edfadcd01090.tar.bz2 poezio-e992107ecff9a2f3f1282a87bdc8edfadcd01090.tar.xz poezio-e992107ecff9a2f3f1282a87bdc8edfadcd01090.zip |
I give up
on getting Link Mauve to ever run tests
Diffstat (limited to 'test')
-rw-r--r-- | test/test_completion.py | 14 | ||||
-rw-r--r-- | test/test_windows.py | 8 |
2 files changed, 15 insertions, 7 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") diff --git a/test/test_windows.py b/test/test_windows.py index cb7c86b7..af1b9d4a 100644 --- a/test/test_windows.py +++ b/test/test_windows.py @@ -9,11 +9,13 @@ config.config = ConfigShim() from poezio.windows import Input, HistoryInput, MessageInput +class SubInput(Input): + def rewrite_text(self, *args, **kwargs): + return None + @pytest.fixture def input(): - input = Input() - input.rewrite_text = lambda: None - return input + return SubInput() class TestInput(object): |