nvchecker/tests/test_anitya.py

16 lines
405 B
Python
Raw Normal View History

2017-07-25 07:23:54 +00:00
# MIT licensed
2020-08-17 08:21:02 +00:00
# Copyright (c) 2020 lilydjwg <lilydjwg@gmail.com>, et al.
2017-07-25 07:23:54 +00:00
# Copyright (c) 2017 Felix Yan <felixonmars@archlinux.org>, et al.
import re
2017-07-25 07:23:54 +00:00
import pytest
pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net]
2017-07-25 07:23:54 +00:00
async def test_anitya(get_version):
version = await get_version("shutter", {
2020-08-17 08:21:02 +00:00
"source": "anitya",
"anitya": "fedora/shutter",
})
assert re.match(r"[0-9.]+", version)