feat: add port update and delete check (#1)
Reviewed-by: Mohammed Naser <mnaser@vexxhost.com>
Reviewed-by: Rico Lin <ricolin@ricolky.com>
diff --git a/tox.ini b/tox.ini
index b67293f..d6c6e57 100644
--- a/tox.ini
+++ b/tox.ini
@@ -3,6 +3,9 @@
[testenv]
usedevelop = True
+setenv =
+ VIRTUAL_ENV={envdir}
+
deps =
-r{toxinidir}/test-requirements.txt
@@ -11,3 +14,17 @@
{[testenv]deps}
commands =
{posargs}
+
+[testenv:linters]
+skipsdist = True
+deps = pre-commit
+commands =
+ pre-commit run --all-files --show-diff-on-failure
+
+[testenv:py{3,310,311,312}]
+changedir = neutron_policy_server/tests
+# change pytest tempdir and add posargs from command line
+commands = pytest {posargs}
+
+[pytest]
+pythonpath = neutron_policy_server