Skip to content

Commit

Permalink
Update tests for async uploads even for default files
Browse files Browse the repository at this point in the history
  • Loading branch information
LoanR committed Jul 23, 2024
1 parent a7301ef commit f41ae63
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions web/tests/meeting/test_meeting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit f41ae63

Please sign in to comment.