-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
28 lines (25 loc) · 1.02 KB
/
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
[flake8]
exclude = *node_modules*,.tox,docs,build
import-order-style = google
max-line-length = 100
[tox]
envlist = py37
skipsdist = True
changedir = tests
[testenv]
setenv =
DYNAMODB_POST_TABLE = {env:DYNAMODB_SUB_TABLE:aws-serverless-skeleton-local-post}
DYNAMODB_USER_TABLE = {env:DYNAMODB_IBAN_TABLE:aws-serverless-skeleton-local-user}
DYNAMODB_HOST = {env:DYNAMODB_HOST:http://localhost:8000}
ES_ENDPOINT = {env:ES_ENDPOINT:localhost:9200}
REGION = {env:REGION:localhost}
S3_UPLOAD_BUCKET = {env:S3_UPLOAD_BUCKET:dummy}
STAGE = {env:STAGE:local}
AWS_SECRET_ACCESS_KEY = {env:AWS_SECRET_ACCESS_KEY:fake_key}
AWS_ACCESS_KEY_ID = {env:AWS_ACCESS_KEY_ID:fake_id}
deps = -rrequirements-dev.txt
# -p no:logging to disable logging output.
# --flake8 to enable flake8 checks as part of testing
# cov test coverage for everything in src
# cov report format is both in htmp page in htmlcov and in the terminal
commands = pytest -p no:logging --flake8 --cov=src --cov-report term --cov-report html {posargs}