diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2019-07-10 19:10:07 +0100 |
---|---|---|
committer | Amber Brown <hawkowl@atleastfornow.net> | 2019-07-11 04:10:07 +1000 |
commit | 1890cfcf82aa3e69530e97bf9ce783e390f22fbe (patch) | |
tree | 82f2bb7a134999614ad8e25d5b1f3e8ed254c70b /tests | |
parent | Merge pull request #5658 from matrix-org/babolivier/is-json (diff) | |
download | synapse-1890cfcf82aa3e69530e97bf9ce783e390f22fbe.tar.xz |
Inline issue_access_token (#5659)
this is only used in one place, so it's clearer if we inline it and reduce the API surface. Also, fixes a buglet where we would create an access token even if we were about to block the user (we would never return the AT, so the user could never use it, but it was still created and added to the db.)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/api/test_auth.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/api/test_auth.py b/tests/api/test_auth.py index 96b26f974b..ddf2b578b3 100644 --- a/tests/api/test_auth.py +++ b/tests/api/test_auth.py @@ -244,7 +244,7 @@ class AuthTestCase(unittest.TestCase): USER_ID = "@percy:matrix.org" self.store.add_access_token_to_user = Mock() - token = yield self.hs.handlers.auth_handler.issue_access_token( + token = yield self.hs.handlers.auth_handler.get_access_token_for_user_id( USER_ID, "DEVICE" ) self.store.add_access_token_to_user.assert_called_with(USER_ID, token, "DEVICE") |