[PMSH] Fix dependencies and build script
[dcaegen2/services.git] / components / pm-subscription-handler / tox.ini
index fcbb647..9ee1c7d 100644 (file)
@@ -1,5 +1,5 @@
 # ============LICENSE_START=======================================================
-#  Copyright (C) 2019 Nordix Foundation.
+#  Copyright (C) 2019-2023 Nordix Foundation.
 # ================================================================================
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -17,7 +17,7 @@
 # ============LICENSE_END=========================================================
 
 [tox]
-envlist = py36,py37,flake8
+envlist = flake8,py39,py310
 skip_missing_interpreters = true
 
 [testenv]
@@ -26,10 +26,13 @@ deps=
     pytest
     coverage
     pytest-cov
+    responses==0.10.7
+    parameterized==0.7.4
 setenv =
     PYTHONPATH={toxinidir}/pmsh_service:{toxinidir}/pmsh_service/mod:{toxinidir}/tests
 commands=
-    pytest --junitxml xunit-results.xml --cov pmsh_service --cov-report xml --cov-report term tests --verbose --cov-fail-under=0
+    pytest --junitxml xunit-results.xml --cov pmsh_service --cov-report xml --cov-report term-missing \
+    tests --verbose --cov-fail-under=70
 
 [testenv:flake8]
 basepython = python3
@@ -39,3 +42,4 @@ commands = flake8 pmsh_service tests
 
 [flake8]
 max-line-length=100
+ignore = E999