summary refs log tree commit diff
path: root/tests/api/test_auth.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/api/test_auth.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/api/test_auth.py b/tests/api/test_auth.py

index bd229cf7e9..751bf599ae 100644 --- a/tests/api/test_auth.py +++ b/tests/api/test_auth.py
@@ -484,23 +484,6 @@ class AuthTestCase(unittest.HomeserverTestCase): ResourceLimitError, ) - def test_reserved_threepid(self) -> None: - self.auth_blocking._limit_usage_by_mau = True - self.auth_blocking._max_mau_value = 1 - self.store.get_monthly_active_count = AsyncMock(return_value=2) - threepid = {"medium": "email", "address": "reserved@server.com"} - unknown_threepid = {"medium": "email", "address": "unreserved@server.com"} - self.auth_blocking._mau_limits_reserved_threepids = [threepid] - - self.get_failure(self.auth_blocking.check_auth_blocking(), ResourceLimitError) - - self.get_failure( - self.auth_blocking.check_auth_blocking(threepid=unknown_threepid), - ResourceLimitError, - ) - - self.get_success(self.auth_blocking.check_auth_blocking(threepid=threepid)) - def test_hs_disabled(self) -> None: self.auth_blocking._hs_disabled = True self.auth_blocking._hs_disabled_message = "Reason for being disabled"