-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
65 lines (58 loc) · 1.46 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[pytest]
norecursedirs = data .tox
pythonpath = ./tests/_test_lib ./src/
;DJANGO_SETTINGS_MODULE = etools_datamart.config.settings
DJANGO_SETTINGS_MODULE = settings_test
django_find_project = false
;disable_migration_signals = true
addopts =
-v
--reuse-db
--tb=short
--maxfail=20
; --echo-version=etools_datamart
--echo-version=django
--echo-env=CIRCLECI
--echo-env=PIPENV_VERBOSITY
--capture=no
--cov-report=html
--cov-config=tests/.coveragerc
--cov=etools_datamart
markers =
slow: marks tests as slow (deselect with '-m "not slow"')
;python_files=tests/**/test_*.py
;filterwarnings =
; ignore::DeprecationWarning
; ignore::django.utils.deprecation.RemovedInDjango40Warning
[tox]
envlist = py39
[testenv]
passenv =
CI
CIRCLECI
CIRCLE_*
DATABASE_URL
DATABASE_URL_ETOOLS
PYTHONDONTWRITEBYTECODE
PIPENV_VERBOSITY
PYTHONPATH
USER
GEOS_LIBRARY_PATH
GDAL_LIBRARY_PATH
setenv =
PYTHONDONTWRITEBYTECODE=true
PYTHONPATH={toxinidir}/src
PIPENV_VERBOSITY=-1
deps =
pipenv
commands =
pipenv sync --dev
flake8 src/ tests/ --format=html --htmldir=~build_flake
isort src/ tests/ --check-only
black src/ tests/ --check
pip install drf-api-checker
pipenv run pytest tests --create-db \
-q \
--cov-report=term \
--cov-config=tests/.coveragerc \
--cov=etools_datamart