Skip to content

Commit

Permalink
add negative test
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-muthwill committed Dec 10, 2024
1 parent 9409845 commit d5300e5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,10 @@ def test_version(self):
except PackageNotFoundError:
expected_version = None
self.assertEqual(__version__, expected_version)

def test_not_existing_version(self):
try:
expected_version = version("django-not-existing-newsletter")
except PackageNotFoundError:
expected_version = None
self.assertIsNone(expected_version)

0 comments on commit d5300e5

Please sign in to comment.