Fix notification unit tests after GetServerInformation was added

This commit is contained in:
Florian Bruhin 2022-08-18 11:42:25 +02:00
parent 55b2fb6c9c
commit 9f4e26186e
1 changed files with 10 additions and 0 deletions

View File

@ -89,6 +89,13 @@ class FakeDBusMessage:
class FakeDBusInterface:
CAPABILITIES_REPLY = FakeDBusMessage("as", ["actions"])
SERVER_INFO_REPLY = FakeDBusMessage(
"ssss",
"fake notification server", # name
"qutebrowser", # vendor
"v0.0.1", # version
"1.2", # spec version
)
def __init__(
self,
@ -113,6 +120,9 @@ class FakeDBusInterface:
def _call_GetCapabilities(self) -> FakeDBusMessage:
return self.CAPABILITIES_REPLY
def _call_GetServerInformation(self) -> FakeDBusMessage:
return self.SERVER_INFO_REPLY
def _call_Notify(
self,
appname: str,