Skip to content

Commit

Permalink
fixed a problem on confest.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kostas Filippopolitis committed Oct 7, 2024
1 parent 1a9d631 commit 116f88e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions tests/standalone_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 1 addition & 4 deletions tests/standalone_tests/test_algorithms_folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 116f88e

Please sign in to comment.