From f41ae63d106d2c52b2cec687ba97ff9a424ab1de Mon Sep 17 00:00:00 2001 From: Loan Robert Date: Tue, 23 Jul 2024 12:42:50 +0200 Subject: [PATCH] Update tests for async uploads even for default files --- web/tests/meeting/test_meeting.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web/tests/meeting/test_meeting.py b/web/tests/meeting/test_meeting.py index 47bd98b..2e22d04 100644 --- a/web/tests/meeting/test_meeting.py +++ b/web/tests/meeting/test_meeting.py @@ -326,8 +326,9 @@ def test_create_with_only_a_default_file( ): """Tests the BBB meeting creation request. - As there is a default file attached to the meeting, it should be - sent right away, and no background upload task should be called. + A default file, which is no longer a real functionnality, attached + to the meeting, should always be sent asynchronously, background + upload task should be called. """ client_app.app.config["FILE_SHARING"] = True @@ -411,7 +412,7 @@ def test_create_with_only_a_default_file( "uploadExternalUrl": f"http://localhost:5000/meeting/{str(meeting.id)}/externalUpload", } - assert not mocked_background_upload.called + assert mocked_background_upload.called def test_create_with_files(