mirror of
https://github.com/lilydjwg/nvchecker
synced 2024-12-26 08:32:21 +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)
|