mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 09:03:46 +01:00
fix test for py3
This commit is contained in:
parent
303f1c851f
commit
6eed16d8a2
1 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue