Refactor file deletion test in test_files.py
This commit is contained in:
parent
11c9a84cbe
commit
6fd4ac1bb9
1 changed files with 1 additions and 1 deletions
|
|
@ -75,6 +75,6 @@ def test_file_operations(client):
|
||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
assert response.json() == {"message": f"File {file_name} deleted successfully"}
|
assert response.json() == {"message": f"File {file_name} deleted successfully"}
|
||||||
|
|
||||||
# Optional: Verify that the file is indeed deleted
|
# Verify that the file is indeed deleted
|
||||||
response = client.get(f"api/v1/files/list/{flow_id}")
|
response = client.get(f"api/v1/files/list/{flow_id}")
|
||||||
assert file_name not in response.json()["files"]
|
assert file_name not in response.json()["files"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue