Fix unit tests

This commit is contained in:
Koper
2023-10-13 10:42:52 +01:00
parent 1a7da94cae
commit 149342f854
2 changed files with 4 additions and 4 deletions

View File

@@ -35,7 +35,7 @@ async def fake_transcript(tmpdir):
@pytest.mark.parametrize(
"url_suffix,content_type",
[
["/mp3", "audio/mp3"],
["/mp3", "audio/mpeg"],
],
)
async def test_transcript_audio_download(fake_transcript, url_suffix, content_type):
@@ -51,7 +51,7 @@ async def test_transcript_audio_download(fake_transcript, url_suffix, content_ty
@pytest.mark.parametrize(
"url_suffix,content_type",
[
["/mp3", "audio/mp3"],
["/mp3", "audio/mpeg"],
],
)
async def test_transcript_audio_download_range(
@@ -74,7 +74,7 @@ async def test_transcript_audio_download_range(
@pytest.mark.parametrize(
"url_suffix,content_type",
[
["/mp3", "audio/mp3"],
["/mp3", "audio/mpeg"],
],
)
async def test_transcript_audio_download_range_with_seek(

View File

@@ -167,7 +167,7 @@ async def test_transcript_rtc_and_websocket(
# check that audio/mp3 is available
resp = await ac.get(f"/transcripts/{tid}/audio/mp3")
assert resp.status_code == 200
assert resp.headers["Content-Type"] == "audio/mp3"
assert resp.headers["Content-Type"] == "audio/mpeg"
# stop server
server.stop()