mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
anitya: relax the test - shutter is updated often these days
This commit is contained in:
parent
02515fc82d
commit
44b9f1856f
1 changed files with 5 additions and 2 deletions
|
@ -2,11 +2,14 @@
|
||||||
# Copyright (c) 2020 lilydjwg <lilydjwg@gmail.com>, et al.
|
# Copyright (c) 2020 lilydjwg <lilydjwg@gmail.com>, et al.
|
||||||
# Copyright (c) 2017 Felix Yan <felixonmars@archlinux.org>, et al.
|
# Copyright (c) 2017 Felix Yan <felixonmars@archlinux.org>, et al.
|
||||||
|
|
||||||
|
import re
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net]
|
pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net]
|
||||||
|
|
||||||
async def test_anitya(get_version):
|
async def test_anitya(get_version):
|
||||||
assert await get_version("shutter", {
|
version = await get_version("shutter", {
|
||||||
"source": "anitya",
|
"source": "anitya",
|
||||||
"anitya": "fedora/shutter",
|
"anitya": "fedora/shutter",
|
||||||
}) == "0.97"
|
})
|
||||||
|
assert re.match(r"[0-9.]+", version)
|
||||||
|
|
Loading…
Add table
Reference in a new issue