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

@ -16,7 +16,7 @@ class MapDisplay(Display):
self.pack = pack
self.map = m
self.player = player
self.pad = curses.newpad(m.height, m.width + 1)
self.pad = self.newpad(m.height, m.width + 1)
def update_pad(self) -> None:
self.pad.addstr(0, 0, self.map.draw_string(self.pack))