-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
user friendly error; permanently delete files on send; formatting
- Loading branch information
Showing
2 changed files
with
116 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,12 @@ | |
|
||
import pytest | ||
|
||
from web.main import ConversionRequest, audio_to_paper, convert_and_send, send_email | ||
from web.main import ( | ||
ConversionRequest, | ||
audio_to_paper, | ||
convert_and_send_with_error_handling, | ||
send_email, | ||
) | ||
|
||
|
||
@pytest.mark.asyncio | ||
|
@@ -40,4 +45,4 @@ async def test_send_email(): | |
async def test_convert_and_send_http(): | ||
request = ConversionRequest(payload="https://www.youtube.com/shorts/nXIHYB0Gp70", lang="en") | ||
user_id = "[email protected]" | ||
await convert_and_send(request, user_id) | ||
await convert_and_send_with_error_handling(request, user_id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters