From 70df24894d1cb0f2897442c64a3b7e460ed6ff78 Mon Sep 17 00:00:00 2001 From: Aineopintojen-harjoitustyo-Algoritmit-j Date: Tue, 30 Jan 2024 09:08:20 +0200 Subject: Adding level-info on statusline. --- tests/test_board.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/test_board.py b/tests/test_board.py index 904f73a..7b0d1fd 100644 --- a/tests/test_board.py +++ b/tests/test_board.py @@ -108,6 +108,6 @@ class TestBoardClass(unittest.TestCase): def test_get_level(self): """ Testataan että nykyinen vaikeustaso palautuu oikein """ b = Board(level=Level.INTERMEDIATE) - self.assertEqual(b.get_level(), Level.INTERMEDIATE) - b = Board(level=Level.INTERMEDIATE, width=25) - self.assertEqual(b.get_level(), None) + self.assertIn(LevelSpecs[Level.INTERMEDIATE][3], b.get_level_name()) + b = Board(level=Level.INTERMEDIATE, width=25, bombs=2) + self.assertIn("Mukautettu", b.get_level_name()) -- cgit v1.2.3