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.
|
|
|
|
|
2021-08-07 06:37:18 +00:00
|
|
|
import re
|
|
|
|
|
2017-07-25 07:23:54 +00:00
|
|
|
import pytest
|
2019-10-15 09:27:34 +00:00
|
|
|
pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net]
|
2017-07-25 07:23:54 +00:00
|
|
|
|
|
|
|
async def test_anitya(get_version):
|
2021-08-07 06:37:18 +00:00
|
|
|
version = await get_version("shutter", {
|
2020-08-17 08:21:02 +00:00
|
|
|
"source": "anitya",
|
|
|
|
"anitya": "fedora/shutter",
|
2021-08-07 06:37:18 +00:00
|
|
|
})
|
|
|
|
assert re.match(r"[0-9.]+", version)
|