Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tests/test_event_emit.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ def subscription():
def test_event_emit():
""" Tests that a function subscribed to an event executes on emit. """

global GLOBAL_VAR
# Before Emit
assert GLOBAL_VAR == 'Init'

bus.emit(EVENT_NAME)

# After Emit
assert GLOBAL_VAR == 'Finished'
GLOBAL_VAR = 'Init'