forked from alphagov/notifications-python-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
46 lines (43 loc) · 904 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
[tox]
envlist =
py27
py35
flake8
[testenv]
deps=
pytest>=3.0.2
pytest-mock>=1.2
pytest-cov>=2.3.1
pytest-xdist>=1.15.0
mock>=1.0.1
freezegun>=0.3.5
requests-mock>=0.7.0
jsonschema>=2.5.1
# can't use the scripts directly as they set up the venv dir, and i'm not sure how that'll interact with tox's internal venv
commands =
py.test tests/ {posargs}
python integration_test/integration_tests.py
# environment variables used by the tests
passenv =
NOTIFY_API_URL
API_KEY
FUNCTIONAL_TEST_EMAIL
FUNCTIONAL_TEST_NUMBER
EMAIL_TEMPLATE_ID
LETTER_TEMPLATE_ID
SMS_TEMPLATE_ID
EMAIL_REPLY_TO_ID
SMS_SENDER_ID
API_SENDING_KEY
INBOUND_SMS_QUERY_KEY
# proxy variables used by the tests when run on jenkins
http_proxy
HTTP_PROXY
https_proxy
HTTPS_PROXY
NO_PROXY
[testenv:flake8]
basepython = python3.5
deps = flake8
commands = flake8 .
skip_install = true