anitya: relax the test - shutter is updated often these days

This commit is contained in:
Chih-Hsuan Yen 2021-08-07 14:37:18 +08:00
parent 02515fc82d
commit 44b9f1856f
No known key found for this signature in database
GPG Key ID: F98EF2A7B0A098AE

View File

@ -2,11 +2,14 @@
# Copyright (c) 2020 lilydjwg <lilydjwg@gmail.com>, et al.
# Copyright (c) 2017 Felix Yan <felixonmars@archlinux.org>, 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)