mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
Merge pull request #188 from yan12125/fix-test-pacman
Fix test_pacman in some scenarios
This commit is contained in:
commit
6f7633a93c
2 changed files with 5 additions and 2 deletions
|
@ -9,4 +9,4 @@ async def test_anitya(get_version):
|
||||||
assert await get_version("shutter", {
|
assert await get_version("shutter", {
|
||||||
"source": "anitya",
|
"source": "anitya",
|
||||||
"anitya": "fedora/shutter",
|
"anitya": "fedora/shutter",
|
||||||
}) == "0.95"
|
}) == "0.96"
|
||||||
|
|
|
@ -1,11 +1,14 @@
|
||||||
# MIT licensed
|
# MIT licensed
|
||||||
# Copyright (c) 2013-2020 lilydjwg <lilydjwg@gmail.com>, et al.
|
# Copyright (c) 2013-2020 lilydjwg <lilydjwg@gmail.com>, et al.
|
||||||
|
|
||||||
|
import pathlib
|
||||||
import shutil
|
import shutil
|
||||||
import pytest
|
import pytest
|
||||||
pytestmark = [pytest.mark.asyncio,
|
pytestmark = [pytest.mark.asyncio,
|
||||||
pytest.mark.skipif(shutil.which("pacman") is None,
|
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):
|
async def test_pacman(get_version):
|
||||||
assert await get_version("ipw2100-fw", {
|
assert await get_version("ipw2100-fw", {
|
||||||
|
|
Loading…
Add table
Reference in a new issue