Skip to content

Commit

Permalink
test: Adjust to libnotify 0.8
Browse files Browse the repository at this point in the history
This introduces a `sender-pid` key  into the protocol.

https://bugs.debian.org/1015068
  • Loading branch information
martinpitt committed Jul 16, 2022
1 parent 44d8d74 commit 4e52e7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_notification_daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ def test_options(self):
log = self.p_mock.stdout.read()
# HACK: Why is the timeout missing on s390x?
if os.uname().machine == 's390x':
self.assertRegex(log, b'[0-9.]+ Notify "fooApp" 0 "warning_icon" "title" "my text" \\[\\] {"urgency": 1}')
self.assertRegex(log, b'[0-9.]+ Notify "fooApp" 0 "warning_icon" "title" "my text" \\[\\] {.*"urgency": 1')
else:
self.assertRegex(log, b'[0-9.]+ Notify "fooApp" 0 "warning_icon" "title" "my text" \\[\\] {"urgency": 1} 27\n')
self.assertRegex(log, b'[0-9.]+ Notify "fooApp" 0 "warning_icon" "title" "my text" \\[\\] {.*"urgency": 1.* 27\n')

def test_id(self):
'''ID handling'''
Expand Down

0 comments on commit 4e52e7b

Please sign in to comment.