Bump black from 22.12.0 to 23.1.0 (#15103)

This commit is contained in:
dependabot[bot] 2023-02-22 15:29:09 -05:00 committed by GitHub
parent 4ed08ff72e
commit 9bb2eac719
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
117 changed files with 108 additions and 218 deletions

View file

@ -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]