From f88e5c2586ff4987305e1da4ca0628e1a582ce77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89loi=20Rivard?= Date: Wed, 21 Feb 2024 13:22:19 +0100 Subject: [PATCH] tests: meeting deletion test --- web/tests/meeting/test_meeting.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/tests/meeting/test_meeting.py b/web/tests/meeting/test_meeting.py index 0c266c48..73cc5a4b 100644 --- a/web/tests/meeting/test_meeting.py +++ b/web/tests/meeting/test_meeting.py @@ -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