forked from BradWhittington/django-mailgun
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |