mirror of
https://github.com/lilydjwg/nvchecker
synced 2024-12-13 18:25:34 +00:00
16 lines
405 B
Python
16 lines
405 B
Python
# MIT licensed
|
|
# 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):
|
|
version = await get_version("shutter", {
|
|
"source": "anitya",
|
|
"anitya": "fedora/shutter",
|
|
})
|
|
assert re.match(r"[0-9.]+", version)
|