mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-18 21:57:27 +08:00
Refactor: reformat all code for lefthook using ruff and gofmt (#16585)
This commit is contained in:
@@ -157,7 +157,7 @@ class TestDeleteUserApiKey:
|
||||
res: Any = requests.post(url=url, json=register_data)
|
||||
res: dict[str, Any] = res.json()
|
||||
if res.get("code") != 0 and "has already registered" not in res.get("message"):
|
||||
raise Exception(f"Failed to create second user: {res.get("message")}")
|
||||
raise Exception(f"Failed to create second user: {res.get('message')}")
|
||||
|
||||
# Generate a token for the test user
|
||||
generate_response: dict[str, Any] = generate_user_api_key(admin_session, user_name)
|
||||
|
||||
Reference in New Issue
Block a user