Skip to content

Commit

Permalink
tests: meeting deletion test
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Feb 21, 2024
1 parent 6fb28d6 commit f88e5c2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions web/tests/meeting/test_meeting.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,3 +389,9 @@ def test_deactivated_meeting_files_cannot_edit(
response = client_app.get(f"/meeting/files/{meeting.id}", status=302)

assert "welcome" in response.location


def test_delete_meeting(client_app, authenticated_user, meeting, bbb_response):
res = client_app.post("/meeting/delete", {"id": meeting.id})
assert ("success", "Élément supprimé") in res.flashes
assert len(Meeting.query.all()) == 0

0 comments on commit f88e5c2

Please sign in to comment.