mirror of
https://github.com/lilydjwg/nvchecker
synced 2025-03-08 20:38:46 +00:00
26 lines
728 B
Python
26 lines
728 B
Python
# MIT licensed
|
|
# Copyright (c) 2024 Daniel Peukert <daniel@peukert.cc>, et al.
|
|
|
|
import pytest
|
|
pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net]
|
|
|
|
async def test_opam_official(get_version):
|
|
assert await get_version("test", {
|
|
"source": "opam",
|
|
"pkg": "omigrate",
|
|
}) == "0.3.2"
|
|
|
|
async def test_opam_coq(get_version):
|
|
assert await get_version("test", {
|
|
"source": "opam",
|
|
"repo": "https://coq.inria.fr/opam/released",
|
|
"pkg": "coq-abp",
|
|
}) == "8.10.0"
|
|
|
|
async def test_opam_coq_trailing_slash(get_version):
|
|
assert await get_version("test", {
|
|
"source": "opam",
|
|
"repo": "https://coq.inria.fr/opam/released/",
|
|
"pkg": "coq-abp",
|
|
}) == "8.10.0"
|