-
Notifications
You must be signed in to change notification settings - Fork 4
/
tox.ini
42 lines (39 loc) · 1.27 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
[tox]
envlist = py{37,py}-dj{21}
[testenv]
usedevelop = true
commands =
rm -rf responsediff/tests/response_fixtures/MixinTest.test_assertNoDiffSelector_non_ascii.content
rm -rf responsediff/tests/response_fixtures/MixinTest.test_assertNoDiffSelector_non_ascii.metadata
rm -rf responsediff/tests/response_fixtures/MixinTest.test_assertWebsiteSame/
rm -rf responsediff/tests/response_fixtures/MixinTest.test_recursion/
rm -rf responsediff/tests/response_fixtures/TestResponseDiff.test_story.content
rm -rf responsediff/tests/response_fixtures/TestResponseDiff.test_story.metadata
py.test -vv --cov responsediff --strict -r fEsxXw {posargs:responsediff}
whitelist_externals =
mysql
psql
rm
deps =
pytest
pytest-django
pytest-cov
mock
coverage
dj21: Django>=2.1,<2.2
setenv =
PIP_ALLOW_EXTERNAL=true
DJANGO_SETTINGS_MODULE=responsediff.tests.project.settings
passenv = TEST_* DBDIFF_* FIXTURE_*
[testenv:qa]
basepython = python2.7
commands =
flake8 --show-source --exclude tests --max-complexity=9 --ignore=D203 responsediff
flake8 --show-source --max-complexity=4 --ignore=D100,D101,D102,E501 responsediff/tests
deps =
flake8
mccabe
flake8-debugger
flake8-import-order
flake8-docstrings
pep8-naming