Skip to content

Commit

Permalink
#106 added few more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bomzheg committed Nov 6, 2024
1 parent abdf96c commit 16888aa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/unit/domain/conditions_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,10 @@ def test_create_empty_condition():
def test_create_only_bonus_condition():
with pytest.raises(exceptions.LevelError):
scn.Conditions([action.KeyBonusCondition({keys.BonusKey(text="SH123", bonus_minutes=1)})])

def test_conditions_get_keys():
c = scn.Conditions([
action.KeyWinCondition({keys.SHKey("SH123"), keys.SHKey("SH321")}),
action.KeyWinCondition({keys.SHKey("СХ123")})
])
assert c.get_keys() == {keys.SHKey("SH123"), keys.SHKey("SH321"), keys.SHKey("СХ123")}

0 comments on commit 16888aa

Please sign in to comment.