Update FakePad to fix tests

This commit is contained in:
Yohann D'ANELLO
2020-11-26 22:32:25 +01:00
parent 0726a8db9e
commit 2690eb8760
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,6 @@
from typing import Tuple
class FakePad:
"""
In order to run tests, we simulate a fake curses pad that accepts functions
@ -10,8 +13,11 @@ class FakePad:
smincol: int, smaxrow: int, smaxcol: int) -> None:
pass
def clear(self) -> None:
def erase(self) -> None:
pass
def resize(self, height: int, width: int) -> None:
pass
def getmaxyx(self) -> Tuple[int, int]:
return 42, 42