Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
test_message_report: Fix report retrieval in topics-disabled test.
Danishc2c5a74f6531
diff --git a/zerver/tests/test_message_report.py b/zerver/tests/test_message_report.pyindex 8527632347e..e166133ada7 100644--- a/zerver/tests/test_message_report.py+++ b/zerver/tests/test_message_report.py@@ -588,7 +588,9 @@ class ReportMessageTest(ZulipTestCase):report_type="harassment",)self.assert_json_success(result)- report_msg = self.get_last_message()+ reports = self.get_submitted_moderation_requests()+ report_msg = reports.first()+ assert report_msg is not Noneself.assertEqual(report_msg.sender_id, notification_bot.id)self.assertEqual(report_msg.topic_name(), "")self.assertIn("reported", report_msg.content)