From 3d7667573e158c454031e9e6633f898151bf49ca Mon Sep 17 00:00:00 2001 From: Charles Peyrat Date: Fri, 11 Dec 2020 19:14:28 +0100 Subject: [PATCH] Add testing for the no_lone_walls option --- squirrelbattle/tests/mapgeneration_test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/squirrelbattle/tests/mapgeneration_test.py b/squirrelbattle/tests/mapgeneration_test.py index abaed1b..ed0951c 100644 --- a/squirrelbattle/tests/mapgeneration_test.py +++ b/squirrelbattle/tests/mapgeneration_test.py @@ -9,7 +9,10 @@ from squirrelbattle.mapgeneration import randomwalk class TestRandomWalk(unittest.TestCase): def setUp(self) -> None: - self.generator = randomwalk.Generator() + #we set no_lone_walls to true for 100% coverage + params = randomwalk.DEFAULT_PARAMS + params["no_lone_walls"] = True + self.generator = randomwalk.Generator(params = params) def test_starting(self) -> None: """