Skip to content

Commit

Permalink
adds test
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-muthwill committed Dec 10, 2024
1 parent f5dd973 commit abf02a2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_init.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from django.test import TestCase
from importlib.metadata import version, PackageNotFoundError
from . import __version__

class TestNewsletterInit(TestCase):

def test_version(self):
try:
expected_version = version("django-newsletter")
except PackageNotFoundError:
expected_version = None
self.assertEqual(__version__, expected_version)

0 comments on commit abf02a2

Please sign in to comment.