Skip to content

Commit

Permalink
pre-commit nr3
Browse files Browse the repository at this point in the history
  • Loading branch information
Maleware committed Oct 29, 2024
1 parent fcda6ea commit 39d4c23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/templates/kuttl/oidc/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
), "Redirection to the Keycloak login page expected"

# Enter username and password into the Keycloak login page and click on "Sign In"
login_page_html = BeautifulSoup(login_page.text, 'html.parser')
authenticate_url = login_page_html.form['action']
login_page_html = BeautifulSoup(login_page.text, "html.parser")
authenticate_url = login_page_html.form["action"]
welcome_page = session.post(
authenticate_url, data={ "username": "jane.doe", 'password': "T8mn72D9" }
authenticate_url, data={"username": "jane.doe", 'password': "T8mn72D9" }
)

assert welcome_page.ok, "Login failed"
Expand All @@ -42,7 +42,7 @@
# Expect the user data provided by Keycloak in Airflow
userinfo_page_html = BeautifulSoup(userinfo_page.text, "html.parser")
table_rows = userinfo_page_html.find_all("tr")
user_data = {tr.find("th").text:tr.find("td").text for tr in table_rows}
user_data = {tr.find("th").text: tr.find("td").text for tr in table_rows}

assert (
user_data["First Name"] == "Jane"
Expand Down

0 comments on commit 39d4c23

Please sign in to comment.