]> git.phdru.name Git - m_librarian.git/blob - tox.ini
Fix(DB): Fix bug with adding same genre to book
[m_librarian.git] / tox.ini
1 [tox]
2 minversion = 3.15
3 envlist = py27-sqlite,py3{4,5,6,7,8,9,10,11}-sqlite,py{27,37,312}-flake8
4
5 # Base test environment settings
6 [testenv]
7 commands =
8     {envpython} --version
9     {envpython} -c "import struct; print(struct.calcsize('P') * 8)"
10     {envpython} -m pytest --version
11 deps =
12     -rdevscripts/requirements/requirements_tests.txt
13 passenv = CI DISTUTILS_USE_SDK MSSdk INCLUDE LIB WINDIR
14 platform = linux|darwin
15
16 [testenv:py{27,34,35,36,37,38,39,310,311,312}-sqlite]
17 commands =
18     {[testenv]commands}
19     -rm.py -f /tmp/test.sqdb
20     {envpython} -m pytest -D sqlite:///tmp/test.sqdb
21
22 [testenv:py{27,34,35,36,37,38,39,310,311,312}-sqlite-w32]
23 platform = win32
24 commands =
25     {[testenv]commands}
26     -rm.py -f {env:TEMP}/test.sqdb
27     pytest -D sqlite:/{env:TEMP}/test.sqdb?debug=1
28     rm.py -f {env:TEMP}/test.sqdb
29
30 # flake8
31 [testenv:py{27,34,35,36,37,38,39,310,311,312}-flake8]
32 deps =
33     flake8
34     pytest < 7.0
35 commands =
36     {[testenv]commands}
37     flake8