Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
Rename wait_until_button_pressed to wait_until_pressed
Browse files Browse the repository at this point in the history
  • Loading branch information
trickeydan committed Feb 12, 2019
1 parent 16fe9b0 commit c567ff8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion j5/components/button.py
Expand Up @@ -38,6 +38,6 @@ def is_pressed(self) -> bool:
"""Get the current pushed state of the button."""
return self._backend.get_button_state(self._board, self._identifier)

def wait_until_button_pressed(self):
def wait_until_pressed(self):
"""Halt the program until this button is pushed."""
self._backend.wait_until_button_pressed(self._board, self._identifier)
2 changes: 1 addition & 1 deletion tests/components/test_button.py
Expand Up @@ -79,7 +79,7 @@ def test_button_wait_until_pressed():
"""Test that the button takes at least 0.2 secs to be pressed."""
button = Button(0, MockButtonBoard(), MockButtonDriver())
start_time = time()
button.wait_until_button_pressed()
button.wait_until_pressed()
end_time = time()
time_taken = end_time - start_time

Expand Down

0 comments on commit c567ff8

Please sign in to comment.