Skip to content

Commit

Permalink
Merge pull request agusmakmun#151 from rgammans/issue147test
Browse files Browse the repository at this point in the history
Issue147test
  • Loading branch information
agusmakmun authored Mar 9, 2021
2 parents b88a047 + 51d0f69 commit e535b38
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions martor/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,14 @@ class SimpleTest(TestCase):
def test_me(self):
response = self.client.get('/test-form-view/')
self.assertEqual(response.status_code, 200)

def test_markdownify_error(self,):
from martor.utils import markdownify, VersionNotCompatible
## This tests that real errors don't raise VersionNotCompatible
# errors, which could be misleading.
try:
markdownify(None)
except Exception as e:
self.assertNotIsInstance(e,VersionNotCompatible)
else:
self.fail("no assertion raised")

0 comments on commit e535b38

Please sign in to comment.