Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
cokelaer committed Dec 20, 2023
1 parent 58196b7 commit ea7a8c5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
import pytest
from pytest_mock import MockerFixture

from sequana_pipelines.lora.src.utils import get_tools_versions, run_tools_versions, run_version
from sequana_pipelines.lora.src.utils import (
get_tools_versions,
run_tools_versions,
run_version,
)


@pytest.mark.asyncio
Expand Down Expand Up @@ -39,9 +43,9 @@ async def communicate(self):

@pytest.mark.asyncio
async def test_run_tools_versions():
used_tools = {"( ͡° ͜ʖ ͡°)": "lora_is_pretty_good --version" , "python": "python --version"}
used_tools = {"( ͡° ͜ʖ ͡°)": "lora_is_pretty_good --version", "python": "python --version"}
results = await run_tools_versions(used_tools, {})
assert results[0][1] == "No version found"
assert results[0][1] in ["No version found", "Tool not found"]
assert results[1][1] == f"{sys.version.split()[0]}"


Expand Down

0 comments on commit ea7a8c5

Please sign in to comment.