From 4955a95be2bbd440060574f0ef3a18bdf251b4a0 Mon Sep 17 00:00:00 2001 From: Lova ANDRIARIMALALA <43842786+Xpirix@users.noreply.github.com> Date: Wed, 11 Sep 2024 13:55:17 +0200 Subject: [PATCH] Update unit test --- qgis-app/plugins/tests/test_plugin_version_feedback.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qgis-app/plugins/tests/test_plugin_version_feedback.py b/qgis-app/plugins/tests/test_plugin_version_feedback.py index 278454ac..1a90a48e 100644 --- a/qgis-app/plugins/tests/test_plugin_version_feedback.py +++ b/qgis-app/plugins/tests/test_plugin_version_feedback.py @@ -331,7 +331,7 @@ def test_post_create_single_task_feedback(self): "feedback": "single line feedback" } ) - self.assertEqual(response.status_code, 200) + self.assertEqual(response.status_code, 302) feedbacks = PluginVersionFeedback.objects.filter( version=self.version_2).all() self.assertEqual(len(feedbacks), 1) @@ -345,7 +345,7 @@ def test_post_create_multiple_task_feedback(self): "feedback": "- [ ] task one\n - [ ] task two" } ) - self.assertEqual(response.status_code, 200) + self.assertEqual(response.status_code, 302) feedbacks = PluginVersionFeedback.objects.filter( version=self.version_2).all() self.assertEqual(len(feedbacks), 2)