From 44b9f1856fbc68c58ae76840c2e14c3dddd8b22e Mon Sep 17 00:00:00 2001 From: Chih-Hsuan Yen Date: Sat, 7 Aug 2021 14:37:18 +0800 Subject: [PATCH] anitya: relax the test - shutter is updated often these days --- tests/test_anitya.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/test_anitya.py b/tests/test_anitya.py index 402874c..510f080 100644 --- a/tests/test_anitya.py +++ b/tests/test_anitya.py @@ -2,11 +2,14 @@ # Copyright (c) 2020 lilydjwg , et al. # Copyright (c) 2017 Felix Yan , et al. +import re + import pytest pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net] async def test_anitya(get_version): - assert await get_version("shutter", { + version = await get_version("shutter", { "source": "anitya", "anitya": "fedora/shutter", - }) == "0.97" + }) + assert re.match(r"[0-9.]+", version)