File: test_opam.py

package info (click to toggle)
nvchecker 2.19-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 804 kB
  • sloc: python: 5,192; makefile: 30; sh: 27
file content (25 lines) | stat: -rw-r--r-- 728 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 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"