1
0
mirror of https://github.com/lilydjwg/nvchecker synced 2024-12-29 10:02:09 +00:00
nvchecker/tests/test_hackage.py
lilydjwg 471b66ff4c tests: use pytest-rerunfailures instead of flaky
flaky is no longer compatible with pytest 8.0 and seems unmaintained.

https://github.com/pytest-dev/pytest/issues/12066
2024-03-09 20:23:25 +08:00

12 lines
331 B
Python

# MIT licensed
# Copyright (c) 2013-2020 lilydjwg <lilydjwg@gmail.com>, et al.
import pytest
pytestmark = [pytest.mark.asyncio(scope="session"), pytest.mark.needs_net]
@pytest.mark.flaky(reruns=10)
async def test_hackage(get_version):
assert await get_version("sessions", {
"source": "hackage",
}) == "2008.7.18"