Skip to content

Commit

Permalink
async
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantAnxiety committed Dec 25, 2024
1 parent b32829c commit d9a83b2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ async def test_download_presigned_url_bad_user(fu_client, s3_tmp_bucket, csv_dat
assert download_resp.json["code"] == "ERR.FILE.PERMISSION_DENIED"


@pytest.mark.asyncio
async def test_upload_presigned_too_large_file(monkeypatch, fu_client, s3_tmp_bucket, csv_data):
monkeypatch.setattr(MakePresignedUrlView, "PRESIGNED_URL_MAX_BYTES", 32)

Expand All @@ -96,6 +97,7 @@ async def test_upload_presigned_too_large_file(monkeypatch, fu_client, s3_tmp_bu
await upload_to_s3_by_presigned(presigned_url_resp.json, content_md5, csv_data)


@pytest.mark.asyncio
async def test_upload_presigned_bad_key(monkeypatch, fu_client, s3_tmp_bucket, csv_data):
content_md5 = base64.b64encode(hashlib.md5(csv_data.encode("utf-8")).digest()).decode("utf-8")

Expand Down

0 comments on commit d9a83b2

Please sign in to comment.