summary refs log tree commit diff
path: root/tests/handlers
diff options
context:
space:
mode:
authorNeil Johnson <neil@matrix.org>2018-08-01 14:02:10 +0100
committerNeil Johnson <neil@matrix.org>2018-08-01 14:02:10 +0100
commit6eed16d8a2335c97675b6b8661869848f397ea29 (patch)
treead02b0e444a9ca6a561552e80f24dfdf0b7734be /tests/handlers
parentMerge branch 'develop' of github.com:matrix-org/synapse into neilj/mau_sign_i... (diff)
downloadsynapse-6eed16d8a2335c97675b6b8661869848f397ea29.tar.xz
fix test for py3
Diffstat (limited to 'tests/handlers')
-rw-r--r--tests/handlers/test_auth.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/handlers/test_auth.py b/tests/handlers/test_auth.py
index 440a453082..55eab9e9cf 100644
--- a/tests/handlers/test_auth.py
+++ b/tests/handlers/test_auth.py
@@ -156,6 +156,10 @@ class AuthTestCase(unittest.TestCase):
         )
         # Ensure does not raise exception
         yield self.auth_handler.get_access_token_for_user_id('user_a')
+
+        self.hs.get_datastore().count_monthly_users = Mock(
+            return_value=defer.succeed(self.small_number_of_users)
+        )
         yield self.auth_handler.validate_short_term_login_token_and_get_user_id(
             self._get_macaroon().serialize()
         )