Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lilydjwg committed Dec 24, 2024
1 parent 48f9526 commit 805158e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pytest]
asyncio_default_fixture_loop_scope = "session"
8 changes: 5 additions & 3 deletions tests/test_rpkgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pytest
import pytest_asyncio

pytestmark = pytest.mark.asyncio(scope='session')
pytestmark = pytest.mark.asyncio

from nvchecker import core, __main__ as main
from nvchecker.util import Entries, RichResult, RawResult
Expand Down Expand Up @@ -68,9 +68,11 @@ async def test_bioc_data_experiment(get_version):
}) == '1.48.0'

async def test_bioc_workflows(get_version):
assert await get_version('liftOver', {
ver = await get_version('liftOver', {
'source': 'rpkgs',
'pkgname': 'liftOver',
'repo': 'bioc-workflows',
'md5': True,
}) == '1.29.0#b19122c7d727499558484af2ce91df5e'
})
assert ver.startswith('1.')
assert '#' in ver

0 comments on commit 805158e

Please sign in to comment.