diff options
author | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-01-30 09:08:20 +0200 |
---|---|---|
committer | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-01-30 09:08:20 +0200 |
commit | 70df24894d1cb0f2897442c64a3b7e460ed6ff78 (patch) | |
tree | a73bd3554e6ad42b8c91c6e5aed7a224ad4118d8 /tests | |
parent | db3fd859e42fb3d6b3c1f98473b54e91d78b74e7 (diff) |
Adding level-info on statusline.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_board.py | 6 |
1 files changed, 3 insertions, 3 deletions
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()) |