mirror of
https://github.com/lilydjwg/nvchecker
synced 2024-12-24 07:32:40 +00:00
471b66ff4c
flaky is no longer compatible with pytest 8.0 and seems unmaintained. https://github.com/pytest-dev/pytest/issues/12066
34 lines
1019 B
Python
34 lines
1019 B
Python
# MIT licensed
|
|
# Copyright (c) 2020 lilydjwg <lilydjwg@gmail.com>, et al.
|
|
# Copyright (c) 2017 Felix Yan <felixonmars@archlinux.org>, et al.
|
|
|
|
import pytest
|
|
pytestmark = [pytest.mark.asyncio(scope="session"), pytest.mark.needs_net]
|
|
|
|
@pytest.mark.flaky
|
|
async def test_ubuntupkg(get_version):
|
|
assert await get_version("sigrok-firmware-fx2lafw", {
|
|
"source": "ubuntupkg",
|
|
}) == "0.1.7-1"
|
|
|
|
@pytest.mark.flaky
|
|
async def test_ubuntupkg_strip_release(get_version):
|
|
assert await get_version("sigrok-firmware-fx2lafw", {
|
|
"source": "ubuntupkg",
|
|
"strip_release": True,
|
|
}) == "0.1.7"
|
|
|
|
@pytest.mark.flaky
|
|
async def test_ubuntupkg_suite(get_version):
|
|
assert await get_version("sigrok-firmware-fx2lafw", {
|
|
"source": "ubuntupkg",
|
|
"suite": "xenial",
|
|
}) == "0.1.2-1"
|
|
|
|
@pytest.mark.flaky
|
|
async def test_ubuntupkg_suite_with_paging(get_version):
|
|
assert await get_version("ffmpeg", {
|
|
"source": "ubuntupkg",
|
|
"suite": "xenial",
|
|
}) == "7:2.8.17-0ubuntu0.1"
|