Add testing for the no_lone_walls option

This commit is contained in:
Charles Peyrat 2020-12-11 19:14:28 +01:00
parent fe9dfdf242
commit 3d7667573e
1 changed files with 4 additions and 1 deletions

View File

@ -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:
"""