tests: Use subTest in test_bugdown_fixtures.

This commit is contained in:
savish
2019-02-13 13:30:16 +05:30
committed by Tim Abbott
parent 43caf28e36
commit 9c292fbeab

View File

@@ -302,8 +302,9 @@ class BugdownTest(ZulipTestCase):
else:
converted = bugdown_convert(test['input'])
print("Running Bugdown test %s" % (name,))
self.assertEqual(converted, test['expected_output'])
with self.subTest(markdown_test_case=name):
print("Running Bugdown test %s" % (name,))
self.assertEqual(converted, test['expected_output'])
def replaced(payload: str, url: str, phrase: str='') -> str:
target = " target=\"_blank\""