nvchecker/tests/test_mercurial.py

15 lines
373 B
Python
Raw Normal View History

# MIT licensed
# Copyright (c) 2020 Felix Yan <felixonmars@archlinux.org>, et al.
import pytest
2024-03-09 11:59:01 +00:00
pytestmark = [
pytest.mark.asyncio(scope="session"),
pytest.mark.needs_net,
]
async def test_mercurial(get_version):
2024-03-09 11:59:01 +00:00
assert await get_version("example", {
"source": "mercurial",
"mercurial": "https://repo.mercurial-scm.org/hg-website/json-tags",
}) == "v1.0"