From 39d4c23d07eff641ea0944e9223571012d4249ce Mon Sep 17 00:00:00 2001 From: Maxi Wittich Date: Tue, 29 Oct 2024 11:15:54 +0100 Subject: [PATCH] pre-commit nr3 --- tests/templates/kuttl/oidc/login.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/templates/kuttl/oidc/login.py b/tests/templates/kuttl/oidc/login.py index 768ce778..771c8eaf 100644 --- a/tests/templates/kuttl/oidc/login.py +++ b/tests/templates/kuttl/oidc/login.py @@ -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" @@ -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"