-
-
Notifications
You must be signed in to change notification settings - Fork 467
/
tox.ini
47 lines (41 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
43
44
45
46
47
[tox]
isolated_build = True
envlist =
py{39,310,311,312,313,py39,py310}
py{39,310,311,312,313,py39,py310}-{clients,flask,django,jose}
coverage
[testenv]
deps =
-r tests/requirements-base.txt
jose: pycryptodomex>=3.10,<4
clients: -r tests/requirements-clients.txt
flask: -r tests/requirements-flask.txt
django: -r tests/requirements-django.txt
setenv =
TESTPATH=tests/core
jose: TESTPATH=tests/jose
clients: TESTPATH=tests/clients
clients: DJANGO_SETTINGS_MODULE=tests.clients.test_django.settings
flask: TESTPATH=tests/flask
django: TESTPATH=tests/django
django: DJANGO_SETTINGS_MODULE=tests.django.settings
commands =
coverage run --source=authlib -p -m pytest {posargs: {env:TESTPATH}}
[pytest]
asyncio_mode = auto
[testenv:coverage]
skip_install = true
commands =
coverage combine
coverage report
coverage html
[coverage:run]
branch = True
[coverage:report]
exclude_lines =
pragma: no cover
except ImportError
def __repr__
raise NotImplementedError
raise DeprecationWarning
deprecate