tests: add fixes for tests
This commit is contained in:
parent
1b0f044834
commit
bf27ee6bb9
2 changed files with 5 additions and 1 deletions
3
maze.py
3
maze.py
|
@ -121,7 +121,10 @@ class Maze:
|
||||||
else:
|
else:
|
||||||
self._graphics.clear_all()
|
self._graphics.clear_all()
|
||||||
self._reset_cell_grid()
|
self._reset_cell_grid()
|
||||||
|
|
||||||
|
if self._graphics:
|
||||||
self._draw_cell_grid()
|
self._draw_cell_grid()
|
||||||
|
|
||||||
self._open_entrance_and_exit()
|
self._open_entrance_and_exit()
|
||||||
self._break_walls_r(MazePosition(
|
self._break_walls_r(MazePosition(
|
||||||
i=0,
|
i=0,
|
||||||
|
|
1
tests.py
1
tests.py
|
@ -39,6 +39,7 @@ class Tests(unittest.TestCase):
|
||||||
None,
|
None,
|
||||||
None,
|
None,
|
||||||
)
|
)
|
||||||
|
m.generate()
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
len(m._cell_grid),
|
len(m._cell_grid),
|
||||||
case["height"],
|
case["height"],
|
||||||
|
|
Loading…
Reference in a new issue