Fix build failure
[sim/a1-interface.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index ffbcb1b..7d421c5 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,6 @@
 # ==================================================================================
-#       Copyright (c) 2020-2022 Nordix
+#  Copyright (c) 2020-2023 Nordix
+#  Copyright (C) 2023-2024 OpenInfra Foundation Europe. All rights reserved.
 #
 #   Licensed under the Apache License, Version 2.0 (the "License");
 #   you may not use this file except in compliance with the License.
@@ -26,7 +27,8 @@ deps=
     pytest
     coverage
     pytest-cov
-    connexion
+    connexion==2.14.2
+    Flask==2.2.5
 
 setenv =
     TESTS_BASE_PATH = {toxinidir}/near-rt-ric-simulator/tests
@@ -37,11 +39,11 @@ commands =
 ; Note that the second pytest (additional pytest added in the future) uses the 'append' flag to combine the coverage data
 ; from the previous tests. The first pytest shall not have the 'append' since the it is supposed to erase previous coverage data
 ; from earlier tox run.
-    pytest --cov {toxinidir}/near-rt-ric-simulator --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=70 \
+    pytest -o log_cli=true --cov {toxinidir}/near-rt-ric-simulator --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=70 \
     {toxinidir}/near-rt-ric-simulator/tests/test_osc_2_1_0.py
-    pytest --cov-append --cov {toxinidir}/near-rt-ric-simulator --cov-report xml --cov-report term-missing --cov-report html \
+    pytest -o log_cli=true --cov-append --cov {toxinidir}/near-rt-ric-simulator --cov-report xml --cov-report term-missing --cov-report html \
     --cov-fail-under=70 {toxinidir}/near-rt-ric-simulator/tests/test_std_1_1_3.py
-    pytest --cov-append --cov {toxinidir}/near-rt-ric-simulator --cov-report xml --cov-report term-missing --cov-report html \
+    pytest -o log_cli=true --cov-append --cov {toxinidir}/near-rt-ric-simulator --cov-report xml --cov-report term-missing --cov-report html \
     --cov-fail-under=70 {toxinidir}/near-rt-ric-simulator/tests/test_std_2_0_0.py
     coverage xml -i