2017-07-03 17:14:35 +00:00
|
|
|
# MIT licensed
|
|
|
|
# Copyright (c) 2017 Felix Yan <felixonmars@archlinux.org>, et al.
|
|
|
|
|
2017-07-04 09:04:29 +00:00
|
|
|
import pytest
|
|
|
|
pytestmark = pytest.mark.asyncio
|
2017-07-03 17:14:35 +00:00
|
|
|
|
2017-07-04 09:04:29 +00:00
|
|
|
async def test_debianpkg(get_version):
|
2018-04-09 06:07:19 +00:00
|
|
|
assert await get_version("sigrok-firmware-fx2lafw", {"debianpkg": None}) == "0.1.6-1"
|
2017-07-03 17:14:35 +00:00
|
|
|
|
2017-07-04 09:04:29 +00:00
|
|
|
async def test_debianpkg_strip_release(get_version):
|
2018-04-09 06:07:19 +00:00
|
|
|
assert await get_version("sigrok-firmware-fx2lafw", {"debianpkg": None, "strip-release": 1}) == "0.1.6"
|
2017-07-03 17:14:35 +00:00
|
|
|
|
2017-07-04 09:04:29 +00:00
|
|
|
async def test_debianpkg_suite(get_version):
|
|
|
|
assert await get_version("sigrok-firmware-fx2lafw", {"debianpkg": None, "suite": "jessie"}) == "0.1.2-1"
|