From 27cdeaf7f49d2e3344f2a9bdc9e37651d34f01f9 Mon Sep 17 00:00:00 2001 From: Dan Anglin Date: Wed, 14 Feb 2024 23:13:41 +0000 Subject: [PATCH] tests: fix tests Don't run self._break_walls_r() if the window is not set for now for testing purposes. --- maze.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maze.py b/maze.py index 98b0976..d6f2791 100644 --- a/maze.py +++ b/maze.py @@ -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: """