blob: d6c6e57e1eadd42a55dfc98e6ff046900fc57b5b [file] [log] [blame]
Mohammed Nasera3a92e52024-06-03 22:30:38 -04001[tox]
2minversion = 3.18.0
3
4[testenv]
5usedevelop = True
Rico Linaa2ae042024-06-25 20:32:17 +08006setenv =
7 VIRTUAL_ENV={envdir}
8
Mohammed Nasera3a92e52024-06-03 22:30:38 -04009deps =
10 -r{toxinidir}/test-requirements.txt
11
12[testenv:venv]
13deps =
14 {[testenv]deps}
15commands =
16 {posargs}
Rico Linaa2ae042024-06-25 20:32:17 +080017
18[testenv:linters]
19skipsdist = True
20deps = pre-commit
21commands =
22 pre-commit run --all-files --show-diff-on-failure
23
24[testenv:py{3,310,311,312}]
25changedir = neutron_policy_server/tests
26# change pytest tempdir and add posargs from command line
27commands = pytest {posargs}
28
29[pytest]
30pythonpath = neutron_policy_server