-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
53 lines (38 loc) · 1.6 KB
/
setup.cfg
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
[tool:pytest]
# https://pytest-django.readthedocs.org/en/latest/configuring_django.html
DJANGO_SETTINGS_MODULE = main.settings
DJANGO_CONFIGURATION = Test
# https://pytest-django.readthedocs.io/en/latest/database.html#tests-requiring-multiple-databases
# https://pytest-cov.readthedocs.io/en/latest/config.html
addopts = --create-db --reuse-db --nomigrations --flake8 --eradicate --cipdb --cov-config=setup.cfg --cov -k "not test_api.py" -m "not external_integration_test"
# Running test in paralell http://doc.pytest.org/en/latest/xdist.html
#addopts = --reuse-db --nomigrations --flake8 --eradicate --cipdb --splinter-screenshot-dir=tests_failures -n auto
# http://doc.pytest.org/en/latest/example/markers.html
markers =
unit_test: Pure unit tests.
integration_test: Tests that access a database, API, etc.
functional_test: End to end tests that needs a browser.
external_integration_test: integration test that require access to external services.
norecursedirs = migrations node_modules
[coverage:report]
# https://coverage.readthedocs.io/en/latest/config.html#report
fail_under = 0
[coverage:run]
# https://coverage.readthedocs.io/en/latest/config.html
# https://coverage.readthedocs.io/en/latest/source.html#source
source =
.
# https://coverage.readthedocs.io/en/latest/source.html#execution
omit =
manage.py
main/wsgi.py
*__init__.py
*migrations/*
*tests/*
[flake8]
# http://pep8.readthedocs.io/en/latest/intro.html#error-codes
# http://flake8.pycqa.org/en/latest/user/error-codes.html
#ignore = E501 E116
max-line-length = 120
max-complexity = 10
max-cognitive-complexity = 15