forked from goshippo/shippo-python-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
30 lines (25 loc) · 793 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
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[testenv]
setenv =
SHIPPO_API_KEY={env:SHIPPO_API_KEY}
SHIPPO_API_BASE={env:SHIPPO_API_BASE}
deps =
pytest
unittest2
requests
vcrpy
mock
commands =
pytest -v
# This test setup will run all tests without using the previously recorded VCR cassettes
# (in GitHub Actions all cassettes will be re-recorded and discarded after the test suite finishes)
[testenv:live]
setenv =
SHIPPO_API_KEY={env:SHIPPO_API_KEY}
SHIPPO_API_BASE={env:SHIPPO_API_BASE}
VCR_RECORD_MODE=all
commands =
pytest -v shippo/test