mirror of
https://github.com/lilydjwg/nvchecker
synced 2024-12-24 07:32:40 +00:00
471b66ff4c
flaky is no longer compatible with pytest 8.0 and seems unmaintained. https://github.com/pytest-dev/pytest/issues/12066
31 lines
871 B
Python
31 lines
871 B
Python
# MIT licensed
|
|
# Copyright (c) 2013-2020 lilydjwg <lilydjwg@gmail.com>, et al.
|
|
|
|
import os
|
|
|
|
import pytest
|
|
pytestmark = [pytest.mark.asyncio(scope="session"),
|
|
pytest.mark.needs_net,
|
|
pytest.mark.skipif(os.environ.get('TRAVIS') == 'true',
|
|
reason="fail too often")]
|
|
|
|
@pytest.mark.flaky(reruns=10)
|
|
async def test_aur(get_version):
|
|
assert await get_version("ssed", {
|
|
"source": "aur",
|
|
}) == "3.62-2"
|
|
|
|
@pytest.mark.flaky(reruns=10)
|
|
async def test_aur_strip_release(get_version):
|
|
assert await get_version("ssed", {
|
|
"source": "aur",
|
|
"strip_release": 1,
|
|
}) == "3.62"
|
|
|
|
@pytest.mark.flaky(reruns=10)
|
|
async def test_aur_use_last_modified(get_version):
|
|
assert await get_version("ssed", {
|
|
"source": "aur",
|
|
'use_last_modified': True,
|
|
}) == "3.62-2-20150725052412"
|