Chunked filed upload

This commit is contained in:
2024-07-12 22:57:54 +02:00
parent 74a1c69e1f
commit df5b735959
6 changed files with 82 additions and 34 deletions

View File

@@ -1,5 +1,6 @@
import pytest
import asyncio
import pytest
from httpx import AsyncClient
@@ -27,13 +28,13 @@ async def test_transcript_upload_file(
# upload mp3
response = await ac.post(
f"/transcripts/{tid}/record/upload",
f"/transcripts/{tid}/record/upload?chunk_number=0&total_chunks=1",
files={
"file": (
"chunk": (
"test_short.wav",
open("tests/records/test_short.wav", "rb"),
"audio/mpeg",
)
),
},
)
assert response.status_code == 200