From 7a52aec884402e855e389acfa6dc9f6d00fcd2a9 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Tue, 23 May 2023 14:47:02 +0200 Subject: [PATCH] fix: [tests] replace unmaintened nose by nose2 --- bin/LAUNCH.sh | 2 +- installing_deps.sh | 3 --- requirements.txt | 2 +- tests/{test-zmq.py => zmq_test.py} | 0 4 files changed, 2 insertions(+), 5 deletions(-) rename tests/{test-zmq.py => zmq_test.py} (100%) diff --git a/bin/LAUNCH.sh b/bin/LAUNCH.sh index f50416f5..ba75d2fd 100755 --- a/bin/LAUNCH.sh +++ b/bin/LAUNCH.sh @@ -573,7 +573,7 @@ function update_thirdparty { function launch_tests() { tests_dir=${AIL_HOME}/tests bin_dir=${AIL_BIN} - python3 `which nosetests` -w $tests_dir --with-coverage --cover-package=$bin_dir -d --cover-erase --exclude=test-zmq.py + python3 -m nose2 --start-dir $tests_dir --coverage $bin_dir --with-coverage testApi test_modules } function reset_password() { diff --git a/installing_deps.sh b/installing_deps.sh index 50870800..e6f907a1 100755 --- a/installing_deps.sh +++ b/installing_deps.sh @@ -31,9 +31,6 @@ sudo apt-get install libev-dev libgmp-dev -qq # TODO NEED REVIEW #Need for generate-data-flow graph sudo apt-get install graphviz -qq -# install nosetests -sudo apt-get install python3-nose -qq - # ssdeep sudo apt-get install libfuzzy-dev -qq sudo apt-get install build-essential libffi-dev autoconf -qq diff --git a/requirements.txt b/requirements.txt index 978eaf9f..5fd7d7e3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -75,7 +75,7 @@ bcrypt>3.1.6 ail_typo_squatting # Tests -nose>=1.3.7 +nose2>=0.12.0 coverage>=5.5 # # # # diff --git a/tests/test-zmq.py b/tests/zmq_test.py similarity index 100% rename from tests/test-zmq.py rename to tests/zmq_test.py