mirror of
https://github.com/Threnklyn/dungeon-sheets.git
synced 2026-05-18 20:23:27 +02:00
Add separated case for max_xp
This commit is contained in:
@@ -21,8 +21,11 @@ class TestCharacter(TestCase):
|
||||
char.level = 2
|
||||
char.hit_dice_faces = 10
|
||||
self.assertEqual(char.hit_dice, '2d10')
|
||||
self.assertEqual(char.hp_max, 10)
|
||||
|
||||
|
||||
def test_max_hp(self):
|
||||
char = Wizard(level=3, constitution=12)
|
||||
self.assertEqual(char.hp_max, 17)
|
||||
|
||||
def test_set_attrs(self):
|
||||
char = Character()
|
||||
char.set_attrs(name='Inara')
|
||||
|
||||
Reference in New Issue
Block a user