-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.cfg
61 lines (53 loc) · 1.15 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
54
55
56
57
58
59
60
61
[flake8]
exclude = .git,.venv,*migrations*
max-line-length = 99
[coverage:run]
branch = True
source = source/
omit =
*__init__*
*tests*
*settings*
*migrations*
*asgi.py
*wsgi.py
*manage.py
*celery.py
*webhooks.py
*admin.py
*storage_backends.py
*management/commands*
*apps/google_reservation*
*apps/google_calendars*
*core/routers.py
[coverage:report]
show_missing = True
exclude_lines =
pragma: no cover
if settings.DEBUG:
# Don't complain about missing debug-only code:
def __unicode__
def __repr__
if self\.debug
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:
[tool:pytest]
addopts = --cov=source/ --ds=base.settings --dc=Testing -p no:warnings --numprocesses 6
python_files = tests.py test_*.py *_tests.py
[tox]
skipsdist = true
[tox:testenv]
deps =
-rrequirements.txt
commands =
./manage.py test
coverage erase
coverage run ./manage.py test
coverage report
whitelist_externals =
coverage
test