style(v2): normalize repository safety test
This commit is contained in:
@@ -61,7 +61,8 @@ async def test_admin_can_list_and_inspect_repositories(tmp_path: Path) -> None:
|
|||||||
) as client:
|
) as client:
|
||||||
assert (
|
assert (
|
||||||
await client.post(
|
await client.post(
|
||||||
"/api/v2/setup", json={"username": "admin", "password": "a secure password"}
|
"/api/v2/setup",
|
||||||
|
json={"username": "admin", "password": "a secure password"},
|
||||||
)
|
)
|
||||||
).status_code == 201
|
).status_code == 201
|
||||||
csrf = client.cookies["backup_tool_csrf"]
|
csrf = client.cookies["backup_tool_csrf"]
|
||||||
|
|||||||
Reference in New Issue
Block a user