Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LondonClass committed Feb 13, 2024
1 parent 9fafaff commit ee9a7e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_elements/test_ui_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,10 @@ def test_function(data):
button.bind(pygame_gui.UI_BUTTON_PRESSED, test_function)
assert button._handler[pygame_gui.UI_BUTTON_PRESSED] == test_function

# test unbind
button.bind(pygame_gui.UI_BUTTON_PRESSED, None)
assert pygame_gui.UI_BUTTON_PRESSED not in button._handler

button.bind(pygame_gui.UI_BUTTON_PRESSED, None)
assert pygame_gui.UI_BUTTON_PRESSED not in button._handler

Expand Down

0 comments on commit ee9a7e0

Please sign in to comment.