Use a fake pad to make tests runnable

This commit is contained in:
Yohann D'ANELLO
2020-11-08 23:40:03 +01:00
parent 65d89b7f9f
commit 3486c865a1
5 changed files with 27 additions and 5 deletions

View File

@ -0,0 +1,14 @@
class FakePad:
"""
In order to run tests, we simulate a fake curses pad that accepts functions
but does nothing with them.
"""
def addstr(self, y: int, x: int, message: str) -> None:
pass
def refresh(self, pminrow: int, pmincol: int, sminrow: int,
smincol: int, smaxrow: int, smaxcol: int) -> None:
pass
def clear(self):
pass