Skip to content

Commit

Permalink
Finished configuration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Roy Greenfeld committed Sep 7, 2015
1 parent f2d64f5 commit d91522c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests.py → test_django_mailgun.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
from django.core.exceptions import ImproperlyConfigured
from django.conf import settings

from django_mailgun import MailgunBackend
from pytest import raises

def test_no_configuration():

def test_configuration():
with raises(ImproperlyConfigured):
MailgunBackend()

def test_configuration():

settings.configure(
MAILGUN_ACCESS_KEY=123,
MAILGUN_SERVER_NAME='abc'
)
MailgunBackend()

0 comments on commit d91522c

Please sign in to comment.