From 6af59aa2aee71136e823a8ff9cfa7dfc12cf4f20 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Sat, 11 May 2024 14:00:39 +0800 Subject: [PATCH] test_ubuntupkg: update and make it more resilient --- tests/test_ubuntupkg.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_ubuntupkg.py b/tests/test_ubuntupkg.py index 4f393dbc..9a0de7be 100644 --- a/tests/test_ubuntupkg.py +++ b/tests/test_ubuntupkg.py @@ -1,5 +1,5 @@ # MIT licensed -# Copyright (c) 2020 lilydjwg , et al. +# Copyright (c) 2020,2024 lilydjwg , et al. # Copyright (c) 2017 Felix Yan , et al. import pytest @@ -7,9 +7,10 @@ @pytest.mark.flaky async def test_ubuntupkg(get_version): - assert await get_version("sigrok-firmware-fx2lafw", { + v = await get_version("sigrok-firmware-fx2lafw", { "source": "ubuntupkg", - }) == "0.1.7-1" + }) + assert v.startswith("0.1.7-") @pytest.mark.flaky async def test_ubuntupkg_strip_release(get_version):