Skip to content

Commit

Permalink
tests: fix ui desktop notifications test
Browse files Browse the repository at this point in the history
  • Loading branch information
pfps committed Jan 2, 2025
1 parent 81567a9 commit 17cc531
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/solaar/ui/test_desktop_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,7 @@ def test_show():
available = desktop_notifications.init()

result = desktop_notifications.show(dev, reason)
assert result is not None if available else result is None
if available:
assert result is not None
else:
assert result is None

0 comments on commit 17cc531

Please sign in to comment.