From 116f88ed507061b7946f00fee82b13a17e134df0 Mon Sep 17 00:00:00 2001 From: Kostas Filippopolitis Date: Mon, 7 Oct 2024 17:19:33 +0300 Subject: [PATCH] fixed a problem on confest. --- .../algorithms/flower/test_process_manager.py | 2 +- tests/standalone_tests/conftest.py | 4 ++-- tests/standalone_tests/test_algorithms_folder.py | 5 +---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/tests/standalone_tests/algorithms/flower/test_process_manager.py b/tests/standalone_tests/algorithms/flower/test_process_manager.py index 4ad122e98..57347748b 100644 --- a/tests/standalone_tests/algorithms/flower/test_process_manager.py +++ b/tests/standalone_tests/algorithms/flower/test_process_manager.py @@ -18,7 +18,7 @@ def test_start_process(self, mock_popen): logger = MagicMock() mock_popen.return_value.pid = 12345 - expected_script_path = os.path.join("algorithm_path", "script.py") + expected_script_path = "script.py" # Starting the process pid = process.start(logger) diff --git a/tests/standalone_tests/conftest.py b/tests/standalone_tests/conftest.py index 2957fd797..20271aeaa 100644 --- a/tests/standalone_tests/conftest.py +++ b/tests/standalone_tests/conftest.py @@ -26,10 +26,10 @@ from exareme2.worker_communication import TableSchema EXAREME2_ALGORITHM_FOLDERS_ENV_VARIABLE_VALUE = ( - "./exareme2/algorithms/exareme2,./tests/algorithms" + "./exareme2/algorithms/exareme2,./tests/algorithms/exareme2" ) FLOWER_ALGORITHM_FOLDERS_ENV_VARIABLE_VALUE = ( - "./exareme2/algorithms/flower,./tests/algorithms" + "./exareme2/algorithms/flower,./tests/algorithms/flower" ) TESTING_RABBITMQ_CONT_IMAGE = "madgik/exareme2_rabbitmq:dev" TESTING_MONETDB_CONT_IMAGE = "madgik/exareme2_db:dev" diff --git a/tests/standalone_tests/test_algorithms_folder.py b/tests/standalone_tests/test_algorithms_folder.py index 79d1d4c85..cd68bcd39 100644 --- a/tests/standalone_tests/test_algorithms_folder.py +++ b/tests/standalone_tests/test_algorithms_folder.py @@ -14,10 +14,7 @@ def set_default_algorithms_folder(): def test_default_algorithms_folder(set_default_algorithms_folder): - assert ( - exareme2.EXAREME2_ALGORITHM_FOLDERS - == "./exareme2/algorithms/exareme2,./exareme2/algorithms/flower" - ) + assert exareme2.EXAREME2_ALGORITHM_FOLDERS == "./exareme2/algorithms/exareme2" @pytest.fixture