24 lines
775 B
Python
24 lines
775 B
Python
# MIT licensed
|
|
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
|
|
|
|
import os
|
|
|
|
from flaky import flaky
|
|
import pytest
|
|
pytestmark = [pytest.mark.asyncio,
|
|
pytest.mark.needs_net,
|
|
pytest.mark.skipif(os.environ.get('TRAVIS') == 'true',
|
|
reason="fail too often")]
|
|
|
|
@flaky(max_runs=10)
|
|
async def test_aur(get_version):
|
|
assert await get_version("ssed", {"aur": None}) == "3.62-2"
|
|
|
|
@flaky(max_runs=10)
|
|
async def test_aur_strip_release(get_version):
|
|
assert await get_version("ssed", {"aur": None, "strip-release": 1}) == "3.62"
|
|
|
|
@flaky(max_runs=10)
|
|
async def test_aur_use_last_modified(get_version):
|
|
assert await get_version("ssed", {"aur": None, 'use_last_modified': True}) == "3.62-2-20150725052412"
|