mirror of
https://github.com/lilydjwg/nvchecker
synced 2025-01-12 01:09:25 +00:00
Merge pull request #188 from yan12125/fix-test-pacman
Fix test_pacman in some scenarios
This commit is contained in:
commit
6f7633a93c
@ -9,4 +9,4 @@ async def test_anitya(get_version):
|
||||
assert await get_version("shutter", {
|
||||
"source": "anitya",
|
||||
"anitya": "fedora/shutter",
|
||||
}) == "0.95"
|
||||
}) == "0.96"
|
||||
|
@ -1,11 +1,14 @@
|
||||
# MIT licensed
|
||||
# Copyright (c) 2013-2020 lilydjwg <lilydjwg@gmail.com>, et al.
|
||||
|
||||
import pathlib
|
||||
import shutil
|
||||
import pytest
|
||||
pytestmark = [pytest.mark.asyncio,
|
||||
pytest.mark.skipif(shutil.which("pacman") is None,
|
||||
reason="requires pacman command")]
|
||||
reason="requires pacman command"),
|
||||
pytest.mark.skipif(not pathlib.Path("/var/lib/pacman/sync/core.db").exists(),
|
||||
reason="requires synced pacman databases")]
|
||||
|
||||
async def test_pacman(get_version):
|
||||
assert await get_version("ipw2100-fw", {
|
||||
|
Loading…
Reference in New Issue
Block a user