forked from saxix/django-admin-extra-urls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
42 lines (37 loc) · 1.07 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]
# as per https://docs.djangoproject.com/en/1.11/faq/install/#what-python-version-can-i-use-with-django
envlist = d{20,21,22}-py{35,36,37}
[pytest]
python_paths=./tests/demoapp/
django_find_project = false
DJANGO_SETTINGS_MODULE=demo.settings
norecursedirs = .tox docs ./tests/demoapp/
python_files=tests/test_*.py
addopts =
-v
--pyargs admin_extra_urls
--doctest-modules
--cov=admin_extra_urls
--cov-report=html
--cov-config=./tests/.coveragerc
--reuse-db
--tb=short
--capture=no
--echo-version django
--echo-attr django.conf.settings.DATABASES.default.ENGINE
pep8ignore = * ALL
markers =
functional: mark a test as functional
[testenv]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH PYTHONDONTWRITEBYTECODE DISPLAY
setenv =
PYTHONDONTWRITEBYTECODE=true
;extras=test
deps=
-rsrc/requirements/testing.pip
d20: django>=2.0,<2.1
d21: django>=2.1,<2.2
d22: django>=2.1,<2.2
dev: git+git://github.com/django/django.git#egg=django
commands =
{posargs:py.test tests --create-db}