tests: fix tests
Don't run self._break_walls_r() if the window is not set for now for testing purposes.
This commit is contained in:
parent
d1c3ca6658
commit
27cdeaf7f4
1 changed files with 2 additions and 1 deletions
1
maze.py
1
maze.py
|
@ -36,6 +36,7 @@ class Maze:
|
||||||
self._cells: List[List[Cell]] = [None for i in range(self._num_cell_rows)]
|
self._cells: List[List[Cell]] = [None for i in range(self._num_cell_rows)]
|
||||||
self._create_cells()
|
self._create_cells()
|
||||||
self._open_entrance_and_exit()
|
self._open_entrance_and_exit()
|
||||||
|
if self._window:
|
||||||
self._break_walls_r(0, 0)
|
self._break_walls_r(0, 0)
|
||||||
|
|
||||||
def _create_cells(self) -> None:
|
def _create_cells(self) -> None:
|
||||||
|
|
Loading…
Reference in a new issue