summaryrefslogtreecommitdiff
path: root/tests/api/test_auth.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-09-24 14:48:40 +0100
committerRichard van der Hoff <richard@matrix.org>2018-09-24 14:48:40 +0100
commit3a94124a52653ee80a5292b553e674f9a9529cb0 (patch)
treeae2fb9970f84da6ac1ebac19022a44a722ed4ace /tests/api/test_auth.py
parent923fa66a30bc2a80fb0bc58fda129f3521e0200d (diff)
Imported Upstream version 0.33.5
Diffstat (limited to 'tests/api/test_auth.py')
-rw-r--r--tests/api/test_auth.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/api/test_auth.py b/tests/api/test_auth.py
index f65a27e5..379e9c4a 100644
--- a/tests/api/test_auth.py
+++ b/tests/api/test_auth.py
@@ -471,6 +471,7 @@ class AuthTestCase(unittest.TestCase):
def test_reserved_threepid(self):
self.hs.config.limit_usage_by_mau = True
self.hs.config.max_mau_value = 1
+ self.store.get_monthly_active_count = lambda: defer.succeed(2)
threepid = {'medium': 'email', 'address': 'reserved@server.com'}
unknown_threepid = {'medium': 'email', 'address': 'unreserved@server.com'}
self.hs.config.mau_limits_reserved_threepids = [threepid]