mirror of
https://github.com/lilydjwg/nvchecker
synced 2024-12-12 01:35:49 +00:00
f00c6d163f
This uses the json api of mercurial repositories. Verified to work on the following hosting sites: www.mercurial-scm.org/repo hg.code.sf.net hg.nginx.org hg.mozilla.org
12 lines
363 B
Python
12 lines
363 B
Python
# MIT licensed
|
|
# Copyright (c) 2020 Felix Yan <felixonmars@archlinux.org>, et al.
|
|
|
|
import pytest
|
|
pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net]
|
|
|
|
async def test_mercurial(get_version):
|
|
assert await get_version("example", {
|
|
"source": "mercurial",
|
|
"mercurial": "https://www.mercurial-scm.org/repo/users/sid0/hg-git",
|
|
}) == "0.8.0"
|