Use a fake pad to make tests runnable
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user