Fix return_value of Mock in test

pull/7363/head
Andrew Morgan 2020-04-30 01:27:28 +01:00
parent 11430c07b6
commit 8cc7023c8b
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ class TestResourceLimitsServerNotices(unittest.HomeserverTestCase):
def test_maybe_send_server_notice_to_user_remove_blocked_notice(self):
"""Test when user has blocked notice, but should have it removed"""
self._rlsn._auth.check_auth_blocking = Mock(defer.succeed(None))
self._rlsn._auth.check_auth_blocking = Mock(return_value=defer.succeed(None))
mock_event = Mock(
type=EventTypes.Message, content={"msgtype": ServerNoticeMsgType}
)