コード例 #1
0
def test_configuration():
    settings.configure(
        MAILGUN_ACCESS_KEY=123,
        MAILGUN_SERVER_NAME='abc',
        MAILGUN_API_URL="https://example.org/",
    )
    MailgunBackend()
コード例 #2
0
def test_marker_methods():
    # Already configured
    mb = MailgunBackend()
    assert mb.open() is None
    assert mb.close() is None
コード例 #3
0
def test_no_configuration():

    with raises(ImproperlyConfigured):
        MailgunBackend()
コード例 #4
0
def setUp():
    mb = MailgunBackend(fail_silently=True)
    message = EmailMessage()
    return (mb, message)
コード例 #5
0
def test_marker_methods():
    # Already configured
    mb = MailgunBackend()
    assert mb.open() is None
    assert mb.close() is None
コード例 #6
0
def test_configuration():
    settings.configure(MAILGUN_ACCESS_KEY=123, MAILGUN_SERVER_NAME='abc')
    MailgunBackend()