File: test_init.py

package info (click to toggle)
python-sparkpost 1.3.10-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 516 kB
  • sloc: python: 2,528; makefile: 31; sh: 10
file content (9 lines) | stat: -rw-r--r-- 188 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
import pytest

from sparkpost import SparkPost
from sparkpost.exceptions import SparkPostException


def test_no_api_key():
    with pytest.raises(SparkPostException):
        SparkPost()