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 Feb 12, 2025
1 parent 5c9f15a commit cf144d0
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(
[("name", "=", "keycloak:8080 on localhost")]
)
Expand Down Expand Up @@ -107,6 +107,7 @@ def test_auth_link(self):
self.assertEqual(params["prompt"], ["select_account"])

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 cf144d0

Please sign in to comment.