Skip to content

Commit

Permalink
test: Add context processor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesx00 committed Jun 16, 2022
1 parent b813649 commit 4001fee
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions django_omise/tests/test_context_processors.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from django.test import TestCase
from django_omise.context_processors import omise_keys
from django.conf import settings

from django_omise.tests.mock_django import MockRequest

# Create your tests here.
class ContextProcessorTestCase(TestCase):
def test_omise_public_key(self):
self.assertEqual(
omise_keys(request=MockRequest())["omise_public_key"],
settings.OMISE_PUBLIC_KEY,
)

0 comments on commit 4001fee

Please sign in to comment.