mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-09 02:32:14 -04:00
Bump black from 22.12.0 to 23.1.0 (#15103)
This commit is contained in:
parent
4ed08ff72e
commit
9bb2eac719
117 changed files with 108 additions and 218 deletions
|
@ -137,6 +137,7 @@ class ThirdPartyRulesTestCase(unittest.FederatingHomeserverTestCase):
|
|||
"""Tests that a forbidden event is forbidden from being sent, but an allowed one
|
||||
can be sent.
|
||||
"""
|
||||
|
||||
# patch the rules module with a Mock which will return False for some event
|
||||
# types
|
||||
async def check(
|
||||
|
@ -243,6 +244,7 @@ class ThirdPartyRulesTestCase(unittest.FederatingHomeserverTestCase):
|
|||
|
||||
def test_modify_event(self) -> None:
|
||||
"""The module can return a modified version of the event"""
|
||||
|
||||
# first patch the event checker so that it will modify the event
|
||||
async def check(
|
||||
ev: EventBase, state: StateMap[EventBase]
|
||||
|
@ -275,6 +277,7 @@ class ThirdPartyRulesTestCase(unittest.FederatingHomeserverTestCase):
|
|||
|
||||
def test_message_edit(self) -> None:
|
||||
"""Ensure that the module doesn't cause issues with edited messages."""
|
||||
|
||||
# first patch the event checker so that it will modify the event
|
||||
async def check(
|
||||
ev: EventBase, state: StateMap[EventBase]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue