From 400d0367dccb025d679ee947921b6de4d7acab45 Mon Sep 17 00:00:00 2001 From: Rohitt Vashishtha Date: Tue, 13 Aug 2019 23:44:45 +0000 Subject: [PATCH] tests: Improve logging for fixture tests in push_notifications. --- zerver/tests/test_push_notifications.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zerver/tests/test_push_notifications.py b/zerver/tests/test_push_notifications.py index 1b1e2daaad..7deda30911 100644 --- a/zerver/tests/test_push_notifications.py +++ b/zerver/tests/test_push_notifications.py @@ -1675,8 +1675,10 @@ class TestPushNotificationsContent(ZulipTestCase): tests = fixtures["regular_tests"] for test in tests: if "text_content" in test: - output = get_mobile_push_content(test["expected_output"]) - self.assertEqual(output, test["text_content"]) + with self.subTest(markdown_test_case=test["name"]): + print("Running markdown fixture test %s" % (test["name"],)) + output = get_mobile_push_content(test["expected_output"]) + self.assertEqual(output, test["text_content"]) def test_backend_only_fixtures(self) -> None: realm = get_realm("zulip")