Skip to content

Commit e535b38

Browse files
authored
Merge pull request #151 from rgammans/issue147test
Issue147test
2 parents b88a047 + 51d0f69 commit e535b38

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

martor/tests/tests.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,14 @@ class SimpleTest(TestCase):
77
def test_me(self):
88
response = self.client.get('/test-form-view/')
99
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

Comments
 (0)