We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b88a047 + 51d0f69 commit e535b38Copy full SHA for e535b38
martor/tests/tests.py
@@ -7,3 +7,14 @@ class SimpleTest(TestCase):
7
def test_me(self):
8
response = self.client.get('/test-form-view/')
9
self.assertEqual(response.status_code, 200)
10
+
11
+ def test_markdownify_error(self,):
12
+ from martor.utils import markdownify, VersionNotCompatible
13
+ ## This tests that real errors don't raise VersionNotCompatible
14
+ # errors, which could be misleading.
15
+ try:
16
+ markdownify(None)
17
+ except Exception as e:
18
+ self.assertNotIsInstance(e,VersionNotCompatible)
19
+ else:
20
+ self.fail("no assertion raised")
0 commit comments