From a311705655a16377bce8879519346b69b0326804 Mon Sep 17 00:00:00 2001 From: Brianna Rainey Date: Fri, 11 Aug 2023 18:57:33 -0400 Subject: [PATCH] test that `available` isn't reset when `max` changes --- tests/test_class_features_data.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_class_features_data.py b/tests/test_class_features_data.py index 0852264..735473a 100644 --- a/tests/test_class_features_data.py +++ b/tests/test_class_features_data.py @@ -114,5 +114,8 @@ def test_class_features_data_monk_ki_points_level_increase_level(): def test_class_features_data_monk_ki_points_level_increase_experience(): c = Character(classs=CLASSES["monk"]) assert c.class_features_data["max_ki_points"] == 0 + assert c.class_features_data["available_ki_points"] == 0 c.experience = experience_at_level(2) assert c.class_features_data["max_ki_points"] == 2 + # available counter stays at 0 after level up despite max increasing + assert c.class_features_data["available_ki_points"] == 0