From 073f030759ca50daed23efe94b393598a112372b Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 2 Nov 2022 13:14:53 +0100 Subject: [PATCH] Fix init test --- src/character/tests/test_character.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/character/tests/test_character.py b/src/character/tests/test_character.py index 8498f23..63b6d4c 100644 --- a/src/character/tests/test_character.py +++ b/src/character/tests/test_character.py @@ -45,9 +45,12 @@ def test_modifier_values(value, expected, ability): assert getattr(character, modifier_attribute) == expected -@given(ability_values()) -def test_initiative(dex): - assert Character(value_dexterity=dex).initiative == dex +@given(ability_values(), integers()) +def test_initiative(dex, init_misc): + assert ( + Character(value_dexterity=dex, initiative_misc=init_misc).modifier_initiative + == modifier_test(dex) + init_misc + ) @given(level=levels(), strength=ability_values())