Merge pull request #198 from yan12125/relax-test-anitya

anitya: relax the test - shutter is updated often these days
This commit is contained in:
依云 2021-08-07 15:13:18 +08:00 committed by GitHub
commit 20183a83e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

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)