forked from django-otp/django-otp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
41 lines (37 loc) · 1.03 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
[tox]
envlist = static
py{3,36}-django22
py{3,39}-django32
coverage
[testenv]
setenv = PYTHONPATH = {env:PYTHONPATH:}{:}{toxinidir}/test
PYTHONWARNINGS = default
DJANGO_SETTINGS_MODULE = test_project.settings
deps = qrcode
freezegun
django22: Django==2.2.*
django32: Django==3.2.*
commands = {envpython} -m django test django_otp
[testenv:static]
basepython = python3
deps = flake8
isort==5.*
skip_install = true
commands = flake8 src
isort --check src
[testenv:coverage]
basepython = python3
deps = {[testenv]deps}
coverage
commands = coverage run -m django test django_otp
coverage report
# This runs the tests against a local PostgreSQL server in its default
# wide-open configuration (username 'postgres', no credentials). The other
# environments will skip the concurrency tests, as SQLite doesn't support row
# locking.
[testenv:postgresql]
setenv =
{[testenv]setenv}
DB_BACKEND = postgresql
deps = {[testenv]deps}
psycopg2