Skip to content

Commit

Permalink
test that available isn't reset when max changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tassaron committed Aug 11, 2023
1 parent 365fe0b commit a311705
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_class_features_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a311705

Please sign in to comment.