Don't use twice the same setting

This commit is contained in:
Yohann D'ANELLO
2020-11-12 02:03:08 +01:00
parent 1366e6a54d
commit 526a1a1e27
2 changed files with 11 additions and 1 deletions

View File

@ -168,6 +168,9 @@ class TestGame(unittest.TestCase):
# Define the "move up" key to 'a'
self.game.handle_key_pressed(KeyValues.ENTER)
self.assertTrue(self.game.settings_menu.waiting_for_key)
# Can't used a mapped key
self.game.handle_key_pressed(None, 's')
self.assertTrue(self.game.settings_menu.waiting_for_key)
self.game.handle_key_pressed(None, 'a')
self.assertFalse(self.game.settings_menu.waiting_for_key)
self.assertEqual(self.game.settings.KEY_LEFT_PRIMARY, 'a')