Skip to main content

✅ Game event creation

CategoryAbility
StatusPassing
Testtests/test_events.py::test_game_event_creation

Create a GameEvent with all fields set and verify all are accessible.

Preconditions

  • No board state required

  • Duban demon instance created for use as source and target

Action

  • Construct GameEvent(DAMAGE_DEALT, source=duban, target=duban, value=5, side=PLAYER_1, lane=2)

Expected Postconditions

  • event.event_type == EventType.DAMAGE_DEALT

  • event.source is duban

  • event.target is duban

  • event.value == 5

  • event.side == Side.PLAYER_1

  • event.lane == 2

Assertions

assert event.event_type == EventType.DAMAGE_DEALT
assert event.value == 5
assert event.lane == 2