Fix linting

This commit is contained in:
Yohann D'ANELLO
2021-01-10 19:17:04 +01:00
parent f4965039ee
commit cddff5c2d9
2 changed files with 6 additions and 8 deletions

View File

@ -260,12 +260,10 @@ class TestGame(unittest.TestCase):
self.game.handle_key_pressed(KeyValues.DANCE)
self.assertEqual(rabbit.confused, 1)
string = rabbit.hit(self.game.player)
self.assertEqual(string,
"{name} is confused, it can not hit {opponent}."
.format(name=_(rabbit.translated_name.capitalize()
), opponent=_(
self.game.player.translated_name
)))
self.assertEqual(
string, _("{name} is confused, it can not hit {opponent}.")
.format(name=rabbit.translated_name.capitalize(),
opponent=self.game.player.translated_name))
rabbit.confused = 0
self.game.player.charisma = 0
self.game.handle_key_pressed(KeyValues.DANCE)