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:
Dan Anglin 2024-02-14 23:13:41 +00:00
parent d1c3ca6658
commit 27cdeaf7f4
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638

View file

@ -36,7 +36,8 @@ class Maze:
self._cells: List[List[Cell]] = [None for i in range(self._num_cell_rows)]
self._create_cells()
self._open_entrance_and_exit()
self._break_walls_r(0, 0)
if self._window:
self._break_walls_r(0, 0)
def _create_cells(self) -> None:
"""