tests: add fixes for tests

This commit is contained in:
Dan Anglin 2024-02-18 09:10:34 +00:00
parent 1b0f044834
commit bf27ee6bb9
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638
2 changed files with 5 additions and 1 deletions

View file

@ -121,7 +121,10 @@ class Maze:
else:
self._graphics.clear_all()
self._reset_cell_grid()
self._draw_cell_grid()
if self._graphics:
self._draw_cell_grid()
self._open_entrance_and_exit()
self._break_walls_r(MazePosition(
i=0,

View file

@ -39,6 +39,7 @@ class Tests(unittest.TestCase):
None,
None,
)
m.generate()
self.assertEqual(
len(m._cell_grid),
case["height"],