From c959a9d865949848f0b2f86692fe0aee95a5052a Mon Sep 17 00:00:00 2001 From: Charles Peyrat Date: Fri, 8 Jan 2021 05:42:12 +0100 Subject: [PATCH] Update tests because Map.neighbourhood became a static method --- squirrelbattle/tests/mapgeneration_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/squirrelbattle/tests/mapgeneration_test.py b/squirrelbattle/tests/mapgeneration_test.py index ed0951c..4fc6b28 100644 --- a/squirrelbattle/tests/mapgeneration_test.py +++ b/squirrelbattle/tests/mapgeneration_test.py @@ -23,7 +23,7 @@ class TestRandomWalk(unittest.TestCase): self.assertTrue(m.tiles[m.start_y][m.start_x].can_walk()) #DFS - queue = m.neighbourhood(m.start_y, m.start_x) + queue = Map.neighbourhood(m.tiles, m.start_y, m.start_x) while queue != []: y, x = queue.pop() if m.tiles[y][x].can_walk():