From f240cafa833aebe3ab3ed43730beb5335e65f096 Mon Sep 17 00:00:00 2001 From: Charles Peyrat Date: Fri, 8 Jan 2021 15:55:26 +0100 Subject: [PATCH] Fixing syntax in tests --- squirrelbattle/tests/mapgeneration_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/squirrelbattle/tests/mapgeneration_test.py b/squirrelbattle/tests/mapgeneration_test.py index 4fc6b28..394977b 100644 --- a/squirrelbattle/tests/mapgeneration_test.py +++ b/squirrelbattle/tests/mapgeneration_test.py @@ -28,5 +28,6 @@ class TestRandomWalk(unittest.TestCase): y, x = queue.pop() if m.tiles[y][x].can_walk(): m.tiles[y][x] = Tile.WALL - queue += m.neighbourhood(y, x) + queue += Map.neighbourhood(m.tiles, y, x) + self.assertFalse(any([any([t.can_walk() for t in l]) for l in m.tiles]))