Skip to content

Commit

Permalink
[IMP] auth_oidc: clarify test comments
Browse files Browse the repository at this point in the history
  • Loading branch information
OdyX committed Sep 11, 2024
1 parent 7e0970b commit ce922a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion auth_oidc/tests/test_auth_oidc_auth_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def _generate_key():

def setUp(self):
super().setUp()
# search our test provider and bind the demo user to it
# search our only test provider
self.provider_rec = self.env["auth.oauth.provider"].search(
[("client_id", "=", "auth_oidc-test")]
)
Expand Down Expand Up @@ -98,6 +98,7 @@ def test_auth_link(self):
self.assertEqual(params["redirect_uri"], [BASE_URL + "/auth_oauth/signin"])

def _prepare_login_test_user(self):
# bind the demo user to our test provider it
user = self.env.ref("base.user_demo")
user.write({"oauth_provider_id": self.provider_rec.id, "oauth_uid": user.login})
return user
Expand Down

0 comments on commit ce922a2

Please sign in to comment.