mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
update tests
This commit is contained in:
parent
83272dc04a
commit
0a90d195d1
2 changed files with 3 additions and 1 deletions
|
@ -33,7 +33,6 @@ async def test_apt_strip_release(get_version):
|
||||||
"strip_release": 1,
|
"strip_release": 1,
|
||||||
}) == "0.1.7"
|
}) == "0.1.7"
|
||||||
|
|
||||||
@pytest.mark.skip
|
|
||||||
@flaky(max_runs=10)
|
@flaky(max_runs=10)
|
||||||
async def test_apt_deepin(get_version):
|
async def test_apt_deepin(get_version):
|
||||||
assert await get_version("sigrok-firmware-fx2lafw", {
|
assert await get_version("sigrok-firmware-fx2lafw", {
|
||||||
|
|
|
@ -1,16 +1,19 @@
|
||||||
# MIT licensed
|
# MIT licensed
|
||||||
# Copyright (c) 2019-2020 lilydjwg <lilydjwg@gmail.com>, et al.
|
# Copyright (c) 2019-2020 lilydjwg <lilydjwg@gmail.com>, et al.
|
||||||
|
|
||||||
|
from flaky import flaky
|
||||||
import pytest
|
import pytest
|
||||||
pytestmark = [pytest.mark.asyncio,
|
pytestmark = [pytest.mark.asyncio,
|
||||||
pytest.mark.needs_net]
|
pytest.mark.needs_net]
|
||||||
|
|
||||||
|
@flaky(max_runs=10)
|
||||||
async def test_repology(get_version):
|
async def test_repology(get_version):
|
||||||
assert await get_version("ssed", {
|
assert await get_version("ssed", {
|
||||||
"source": "repology",
|
"source": "repology",
|
||||||
"repo": "aur",
|
"repo": "aur",
|
||||||
}) == "3.62"
|
}) == "3.62"
|
||||||
|
|
||||||
|
@flaky(max_runs=10)
|
||||||
async def test_repology_subrepo(get_version):
|
async def test_repology_subrepo(get_version):
|
||||||
assert await get_version("asciiquarium", {
|
assert await get_version("asciiquarium", {
|
||||||
"source": "repology",
|
"source": "repology",
|
||||||
|
|
Loading…
Add table
Reference in a new issue