2020-11-08 22:40:03 +00:00
|
|
|
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
|
|
|
|
|
2020-11-08 22:48:26 +00:00
|
|
|
def clear(self) -> None:
|
2020-11-08 22:40:03 +00:00
|
|
|
pass
|
2020-11-08 23:44:08 +00:00
|
|
|
|
|
|
|
def resize(self, height: int, width: int) -> None:
|
|
|
|
pass
|