1
1
[tox]
2
2
envlist =
3
- py{27,34,35,36}-{local,integ,accept,examples},
3
+ py{27,34,35,36}-{local,integ,accept,examples}, nocmk,
4
4
bandit, doc8, readme, docs,
5
5
{flake8,pylint}{,-tests,-examples},
6
6
vulture
@@ -18,6 +18,9 @@ envlist =
18
18
# test-release :: Builds dist files and uploads to testpypi pypirc profile.
19
19
# release :: Builds dist files and uploads to pypi pypirc profile.
20
20
21
+ [testenv:base-command]
22
+ commands = pytest --basetemp ={envtmpdir} -l --cov aws_encryption_sdk {posargs}
23
+
21
24
[testenv]
22
25
passenv =
23
26
# Identifies AWS KMS key id to use in integration tests
@@ -27,17 +30,20 @@ passenv =
27
30
# Pass through AWS profile name (useful for local testing)
28
31
AWS_PROFILE
29
32
sitepackages = False
30
- deps =
31
- mock
32
- pytest>=3.3.1
33
- pytest-cov
34
- pytest-mock
33
+ deps = -rtest/requirements.txt
35
34
commands =
36
- local: pytest --cov aws_encryption_sdk -m local -l {posargs}
37
- integ: pytest --cov aws_encryption_sdk -m integ -l {posargs}
38
- accept: pytest --cov aws_encryption_sdk -m accept -l {posargs}
39
- all: pytest --cov aws_encryption_sdk -l {posargs}
40
- examples: pytest --cov examples/test/ -m examples -l {posargs}
35
+ local: {[testenv:base-command]commands} -m local
36
+ integ: {[testenv:base-command]commands} -m integ
37
+ accept: {[testenv:base-command]commands} -m accept
38
+ all: {[testenv:base-command]commands}
39
+ examples: {[testenv:base-command]commands} -m examples
40
+
41
+ # Verify that local tests work without environment variables present
42
+ [testenv:nocmk]
43
+ basepython = python3
44
+ sitepackages = False
45
+ deps = -rtest/requirements.txt
46
+ commands = {[testenv:base-command]commands} -m local
41
47
42
48
# Linters
43
49
[testenv:flake8]
0 commit comments