Skip to content

Commit 9e45789

Browse files
committed
Reformat test_frontend.py
1 parent 270d034 commit 9e45789

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ repos:
4646
4747
4848
49+
4950
files: \.[j]sx?$
5051
exclude: "eslint.config.js|static/js/reconnecting-websocket.js"
5152
types: [file]

tools/test_frontend.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ def verify_server_availability(url, timeout=180):
6161
), "Webservice(s) failed to launch:\n" + "\n".join(statuses)
6262

6363
response = requests.get(url)
64-
assert response.status_code == 200, (
65-
f"Expected status 200, got {response.status_code} for URL {url}. Retrying."
66-
)
64+
assert (
65+
response.status_code == 200
66+
), f"Expected status 200, got {response.status_code} for URL {url}. Retrying."
6767

6868
response = requests.get(url + "/static/build/main.bundle.js")
69-
assert response.status_code == 200, (
70-
"Javascript bundle not found, did packing fail?"
71-
)
69+
assert (
70+
response.status_code == 200
71+
), "Javascript bundle not found, did packing fail?"
7272

7373
return True # all checks passed
7474
except Exception as e:

0 commit comments

Comments
 (0)