This commit is contained in:
2025-11-09 00:52:16 +01:00
parent 81f1cfd200
commit c6fb77c89d
6 changed files with 328 additions and 206 deletions
+1 -2
View File
@@ -369,8 +369,7 @@ async def test_file_browser_upload_file(logged_in_client: TestClient, file_servi
content_type='text/plain')
resp = await logged_in_client.post("/files/upload", data=data, allow_redirects=False)
assert resp.status == 302 # Redirect
assert resp.headers["Location"].startswith("/files")
assert resp.status == 200
expected_path = temp_user_files_dir / user_email / "uploaded.txt"
assert expected_path.is_file()