tests: Improve logging for fixture tests in push_notifications.

This commit is contained in:
Rohitt Vashishtha 2019-08-13 23:44:45 +00:00 committed by Tim Abbott
parent da2b7ef137
commit 400d0367dc
1 changed files with 4 additions and 2 deletions

View File

@ -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")