mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-14 03:35:28 -04:00
Additional constants for EDU types. (#12884)
Instead of hard-coding strings in many places.
This commit is contained in:
parent
d9f092285b
commit
c52abc1cfd
35 changed files with 146 additions and 96 deletions
|
@ -17,6 +17,7 @@
|
|||
|
||||
from twisted.test.proto_helpers import MemoryReactor
|
||||
|
||||
from synapse.api.constants import EduTypes
|
||||
from synapse.rest.client import room
|
||||
from synapse.server import HomeServer
|
||||
from synapse.types import UserID
|
||||
|
@ -67,7 +68,7 @@ class RoomTypingTestCase(unittest.HomeserverTestCase):
|
|||
events[0],
|
||||
[
|
||||
{
|
||||
"type": "m.typing",
|
||||
"type": EduTypes.TYPING,
|
||||
"room_id": self.room_id,
|
||||
"content": {"user_ids": [self.user_id]},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue