mirror of
https://github.com/lilydjwg/nvchecker
synced 2024-12-19 13:20:15 +00:00
23 lines
796 B
Python
23 lines
796 B
Python
# MIT licensed
|
|
# Copyright (c) 2017 Felix Yan <felixonmars@archlinux.org>, et al.
|
|
|
|
from flaky import flaky
|
|
import pytest
|
|
pytestmark = pytest.mark.asyncio
|
|
|
|
@flaky
|
|
async def test_ubuntupkg(get_version):
|
|
assert await get_version("sigrok-firmware-fx2lafw", {"ubuntupkg": None}) == "0.1.5-1"
|
|
|
|
@flaky
|
|
async def test_ubuntupkg_strip_release(get_version):
|
|
assert await get_version("sigrok-firmware-fx2lafw", {"ubuntupkg": None, "strip-release": 1}) == "0.1.5"
|
|
|
|
@flaky
|
|
async def test_ubuntupkg_suite(get_version):
|
|
assert await get_version("sigrok-firmware-fx2lafw", {"ubuntupkg": None, "suite": "xenial"}) == "0.1.2-1"
|
|
|
|
@flaky
|
|
async def test_ubuntupkg_suite_with_paging(get_version):
|
|
assert await get_version("ffmpeg", {"ubuntupkg": None, "suite": "vivid"}) == "7:2.5.10-0ubuntu0.15.04.1"
|