mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 04:24:56 -04:00
Add type hints to event_push_actions. (#11594)
This commit is contained in:
parent
2215954147
commit
b6102230a7
11 changed files with 226 additions and 155 deletions
|
@ -14,6 +14,8 @@
|
|||
|
||||
from unittest.mock import Mock
|
||||
|
||||
from synapse.storage.databases.main.event_push_actions import NotifCounts
|
||||
|
||||
from tests.unittest import HomeserverTestCase
|
||||
|
||||
USER_ID = "@user:example.com"
|
||||
|
@ -57,11 +59,11 @@ class EventPushActionsStoreTestCase(HomeserverTestCase):
|
|||
)
|
||||
self.assertEquals(
|
||||
counts,
|
||||
{
|
||||
"notify_count": noitf_count,
|
||||
"unread_count": 0, # Unread counts are tested in the sync tests.
|
||||
"highlight_count": highlight_count,
|
||||
},
|
||||
NotifCounts(
|
||||
notify_count=noitf_count,
|
||||
unread_count=0, # Unread counts are tested in the sync tests.
|
||||
highlight_count=highlight_count,
|
||||
),
|
||||
)
|
||||
|
||||
def _inject_actions(stream, action):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue