mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore: enforce more ruff rules (#31447)
Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
This commit is contained in:
committed by
GitHub
parent
9da65d6bfd
commit
e51b95ffa8
@@ -32,11 +32,13 @@ app = create_app(superset_config_module=superset_config_module)
|
||||
|
||||
|
||||
def login(
|
||||
client: "FlaskClient[Any]", username: str = "admin", password: str = "general"
|
||||
client: "FlaskClient[Any]",
|
||||
username: str = "admin",
|
||||
password: str = "general", # noqa: S107
|
||||
):
|
||||
resp = client.post(
|
||||
"/login/",
|
||||
data=dict(username=username, password=password),
|
||||
data=dict(username=username, password=password), # noqa: C408
|
||||
).get_data(as_text=True)
|
||||
assert "User confirmation needed" not in resp
|
||||
return resp
|
||||
|
||||
Reference in New Issue
Block a user