Skip to content

Commit

Permalink
fixup! fixup! refactor the code handling oauth2
Browse files Browse the repository at this point in the history
  • Loading branch information
gurneyalex committed Apr 8, 2024
1 parent fc2accf commit e7bf9a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webservice/tests/test_oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ def test_update_token(self):

with mock_cursor(self.env.cr):
result = self.webservice.call("get", url=f"{self.url}endpoint")
self.env.cr.commit.assert_called_once_with() # one call with no args

self.webservice.refresh()
self.assertTrue("cool_token" in self.webservice.oauth2_token)
self.assertEqual(result, b"OK")

0 comments on commit e7bf9a1

Please sign in to comment.