@@ -27,7 +27,7 @@ def start(self, job_config: dict[str, Any]) -> Response:
2727 converter_response = requests .post (
2828 f"{ self .converter_url } /jobs" ,
2929 headers = {
30- "Authorization" : "Bearer %s" % keycloak_token ,
30+ "Authorization" : f "Bearer { keycloak_token } " ,
3131 "Content-type" : "application/json" ,
3232 },
3333 data = json .dumps (job_config ),
@@ -50,7 +50,7 @@ def start_simulation(self, job_config: dict[str, Any]) -> Response:
5050 converter_response = requests .post (
5151 f"{ self .converter_url } /jobs/simulation" ,
5252 headers = {
53- "Authorization" : "Bearer %s" % keycloak_token ,
53+ "Authorization" : f "Bearer { keycloak_token } " ,
5454 "Content-type" : "application/json" ,
5555 },
5656 data = json .dumps (job_config ),
@@ -72,7 +72,7 @@ def get_job_summary(self, job_id: str) -> Response:
7272 job_summary = requests .get (
7373 f"{ self .converter_url } /jobs/{ job_id } /execution-summary" ,
7474 headers = {
75- "Authorization" : "Bearer %s" % keycloak_token ,
75+ "Authorization" : f "Bearer { keycloak_token } " ,
7676 "Content-type" : "application/json" ,
7777 },
7878 )
@@ -93,7 +93,7 @@ def stop_job(self, job_id: str) -> Response:
9393 job_status = requests .post (
9494 f"{ self .converter_url } /jobs/{ job_id } /stop" ,
9595 headers = {
96- "Authorization" : "Bearer %s" % keycloak_token ,
96+ "Authorization" : f "Bearer { keycloak_token } " ,
9797 "Content-type" : "application/json" ,
9898 },
9999 )
@@ -122,7 +122,7 @@ def get_pseudo_report(self, job_id: str) -> Response:
122122 pseudo_report = requests .get (
123123 f"{ self .converter_url } /jobs/{ job_id } /reports/pseudo" ,
124124 headers = {
125- "Authorization" : "Bearer %s" % keycloak_token ,
125+ "Authorization" : f "Bearer { keycloak_token } " ,
126126 "Content-type" : "application/json" ,
127127 },
128128 )
@@ -145,7 +145,7 @@ def get_pseudo_schema(self, job_id: str) -> Response:
145145 pseudo_report = requests .get (
146146 f"{ self .converter_url } /jobs/{ job_id } /reports/pseudo-schema-hierarchy" ,
147147 headers = {
148- "Authorization" : "Bearer %s" % keycloak_token ,
148+ "Authorization" : f "Bearer { keycloak_token } " ,
149149 "Content-type" : "application/json" ,
150150 },
151151 )
0 commit comments