2017-07-06 05:27:24 +00:00
|
|
|
# MIT licensed
|
|
|
|
# Copyright (c) 2017 Felix Yan <felixonmars@archlinux.org>, et al.
|
|
|
|
|
2017-07-06 05:31:24 +00:00
|
|
|
from flaky import flaky
|
2017-07-06 05:27:24 +00:00
|
|
|
import pytest
|
2019-11-05 02:00:00 +00:00
|
|
|
pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net]
|
2017-07-06 05:27:24 +00:00
|
|
|
|
2017-07-06 05:31:24 +00:00
|
|
|
@flaky
|
2017-07-06 05:27:24 +00:00
|
|
|
async def test_ubuntupkg(get_version):
|
2019-12-07 03:23:44 +00:00
|
|
|
assert await get_version("sigrok-firmware-fx2lafw", {"ubuntupkg": None}) == "0.1.7-1"
|
2017-07-06 05:27:24 +00:00
|
|
|
|
2017-07-06 05:31:24 +00:00
|
|
|
@flaky
|
2017-07-06 05:27:24 +00:00
|
|
|
async def test_ubuntupkg_strip_release(get_version):
|
2019-12-07 03:23:44 +00:00
|
|
|
assert await get_version("sigrok-firmware-fx2lafw", {"ubuntupkg": None, "strip-release": 1}) == "0.1.7"
|
2017-07-06 05:27:24 +00:00
|
|
|
|
2017-07-06 05:31:24 +00:00
|
|
|
@flaky
|
2017-07-06 05:27:24 +00:00
|
|
|
async def test_ubuntupkg_suite(get_version):
|
|
|
|
assert await get_version("sigrok-firmware-fx2lafw", {"ubuntupkg": None, "suite": "xenial"}) == "0.1.2-1"
|
|
|
|
|
2017-07-06 05:31:24 +00:00
|
|
|
@flaky
|
2017-07-06 05:27:24 +00:00
|
|
|
async def test_ubuntupkg_suite_with_paging(get_version):
|
2020-07-25 06:28:31 +00:00
|
|
|
assert await get_version("ffmpeg", {"ubuntupkg": None, "suite": "xenial"}) == "7:2.8.17-0ubuntu0.1"
|