Skip to content

Commit

Permalink
tests: optimise InteractableWindowsToaster variable
Browse files Browse the repository at this point in the history
Store the variable instead of initialising InteractableWindowsToaster twice
  • Loading branch information
DatGuy1 committed Aug 13, 2023
1 parent 5eac07c commit 7193fc2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_toasts.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,9 @@ def test_scheduled_toast(pytestconfig):


def test_clear_toasts():
InteractableWindowsToaster("Python").clear_scheduled_toasts()
InteractableWindowsToaster("Python").clear_toasts()
toaster = InteractableWindowsToaster("Python")
toaster.clear_scheduled_toasts()
toaster.clear_toasts()


def test_expiration_toasts():
Expand Down

0 comments on commit 7193fc2

Please sign in to comment.