Update.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user