nvchecker/tests/test_debianpkg.py
2017-08-30 17:53:25 +08:00

15 lines
577 B
Python

# MIT licensed
# Copyright (c) 2017 Felix Yan <felixonmars@archlinux.org>, et al.
import pytest
pytestmark = pytest.mark.asyncio
async def test_debianpkg(get_version):
assert await get_version("sigrok-firmware-fx2lafw", {"debianpkg": None}) == "0.1.5-1"
async def test_debianpkg_strip_release(get_version):
assert await get_version("sigrok-firmware-fx2lafw", {"debianpkg": None, "strip-release": 1}) == "0.1.5"
async def test_debianpkg_suite(get_version):
assert await get_version("sigrok-firmware-fx2lafw", {"debianpkg": None, "suite": "jessie"}) == "0.1.2-1"