T1-T4: tests de resilience, SDK PyPI ready, worker docker-compose, fix compat tests
This commit is contained in:
@@ -25,7 +25,8 @@ async def test_save_upload_too_large(mock_settings):
|
||||
await save_upload(mock_file, "client_id")
|
||||
assert exc.value.status_code == 413
|
||||
|
||||
def test_delete_files_exists(tmp_path):
|
||||
@pytest.mark.asyncio
|
||||
async def test_delete_files_exists(tmp_path):
|
||||
f1 = tmp_path / "f1.txt"
|
||||
f1.write_text("hello")
|
||||
f2 = tmp_path / "f2.txt"
|
||||
@@ -33,8 +34,8 @@ def test_delete_files_exists(tmp_path):
|
||||
|
||||
assert f1.exists()
|
||||
assert f2.exists()
|
||||
|
||||
delete_files(str(f1), str(f2))
|
||||
|
||||
await delete_files(str(f1), str(f2))
|
||||
|
||||
assert not f1.exists()
|
||||
assert not f2.exists()
|
||||
|
||||
Reference in New Issue
Block a user