-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: use asyncio_default_fixture_loop_scope = "session"
See also pytest-dev/pytest-asyncio#924.
- Loading branch information
Showing
43 changed files
with
43 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# Copyright (c) 2017 Felix Yan <[email protected]>, et al. | ||
|
||
import pytest | ||
pytestmark = [pytest.mark.asyncio(scope="session"), pytest.mark.needs_net] | ||
pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net] | ||
|
||
@pytest.mark.flaky(reruns=10) | ||
async def test_apt(get_version): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Copyright (c) 2013-2020 lilydjwg <[email protected]>, et al. | ||
|
||
import pytest | ||
pytestmark = [pytest.mark.asyncio(scope="session"), pytest.mark.needs_net] | ||
pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net] | ||
|
||
@pytest.mark.flaky | ||
async def test_archpkg(get_version): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Copyright (c) 2013-2020 lilydjwg <[email protected]>, et al. | ||
|
||
import pytest | ||
pytestmark = [pytest.mark.asyncio(scope="session"), pytest.mark.needs_net] | ||
pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net] | ||
|
||
async def test_bitbucket(get_version): | ||
assert await get_version("example", { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Copyright (c) 2020 lilydjwg <[email protected]>, et al. | ||
|
||
import pytest | ||
pytestmark = pytest.mark.asyncio(scope="session") | ||
pytestmark = pytest.mark.asyncio | ||
|
||
async def test_cache(run_str_multi): | ||
conf = r''' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Copyright (c) 2021 lilydjwg <[email protected]>, et al. | ||
|
||
import pytest | ||
pytestmark = pytest.mark.asyncio(scope="session") | ||
pytestmark = pytest.mark.asyncio | ||
|
||
async def test_combiner(run_str_multi): | ||
conf = r''' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Copyright (c) 2013-2020 lilydjwg <[email protected]>, et al. | ||
|
||
import pytest | ||
pytestmark = [pytest.mark.asyncio(scope="session"), pytest.mark.needs_net] | ||
pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net] | ||
|
||
async def test_cpan(get_version): | ||
assert await get_version("POE-Component-Server-HTTPServer", { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Copyright (c) 2013-2020 lilydjwg <[email protected]>, et al. | ||
|
||
import pytest | ||
pytestmark = [pytest.mark.asyncio(scope="session"), pytest.mark.needs_net] | ||
pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net] | ||
|
||
async def test_cratesio(get_version): | ||
assert await get_version("example", { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# Copyright (c) 2017 Felix Yan <[email protected]>, et al. | ||
|
||
import pytest | ||
pytestmark = [pytest.mark.asyncio(scope="session"), pytest.mark.needs_net] | ||
pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net] | ||
|
||
@pytest.mark.flaky(reruns=10) | ||
async def test_debianpkg(get_version): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Copyright (c) 2013-2020 lilydjwg <[email protected]>, et al. | ||
|
||
import pytest | ||
pytestmark = [pytest.mark.asyncio(scope="session"), pytest.mark.needs_net] | ||
pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net] | ||
|
||
async def test_gems(get_version): | ||
assert await get_version("example", { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Copyright (c) 2020 Felix Yan <[email protected]>, et al. | ||
|
||
import pytest | ||
pytestmark = [pytest.mark.asyncio(scope="session"), pytest.mark.needs_net] | ||
pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net] | ||
|
||
async def test_git(get_version): | ||
assert await get_version("example", { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Copyright (c) 2013-2020 lilydjwg <[email protected]>, et al. | ||
|
||
import pytest | ||
pytestmark = [pytest.mark.asyncio(scope="session"), | ||
pytestmark = [pytest.mark.asyncio, | ||
pytest.mark.needs_net] | ||
|
||
@pytest.mark.flaky(reruns=10) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Copyright (c) 2013-2020 lilydjwg <[email protected]>, et al. | ||
|
||
import pytest | ||
pytestmark = [pytest.mark.asyncio(scope="session"), pytest.mark.needs_net] | ||
pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net] | ||
|
||
async def test_gitlab(get_version): | ||
ver = await get_version("example", { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Copyright (c) 2013-2020 lilydjwg <[email protected]>, et al. | ||
|
||
import pytest | ||
pytestmark = [pytest.mark.asyncio(scope="session"), pytest.mark.needs_net] | ||
pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net] | ||
|
||
@pytest.mark.flaky(reruns=10) | ||
async def test_hackage(get_version): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# MIT Licensed | ||
# Copyright (c) 2024 Bert Peters <[email protected]>, et al. | ||
import pytest | ||
pytestmark = [pytest.mark.asyncio(scope="session"), pytest.mark.needs_net] | ||
pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net] | ||
|
||
async def test_launchpad(get_version): | ||
version = await get_version( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Copyright (c) 2013-2020 lilydjwg <[email protected]>, et al. | ||
|
||
import pytest | ||
pytestmark = pytest.mark.asyncio(scope="session") | ||
pytestmark = pytest.mark.asyncio | ||
|
||
async def test_manual(get_version): | ||
assert await get_version("example", { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Copyright (c) 2013-2020 lilydjwg <[email protected]>, et al. | ||
|
||
import pytest | ||
pytestmark = [pytest.mark.asyncio(scope="session"), pytest.mark.needs_net] | ||
pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net] | ||
|
||
async def test_npm(get_version): | ||
assert await get_version("example", { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Copyright (c) 2013-2021 Th3Whit3Wolf <[email protected]>, et al. | ||
|
||
import pytest | ||
pytestmark = [pytest.mark.asyncio(scope="session"), pytest.mark.needs_net] | ||
pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net] | ||
|
||
async def test_openvsx(get_version): | ||
assert await get_version("usernamehw.indent-one-space", { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Copyright (c) 2013-2020 lilydjwg <[email protected]>, et al. | ||
|
||
import pytest | ||
pytestmark = [pytest.mark.asyncio(scope="session"), pytest.mark.needs_net] | ||
pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net] | ||
|
||
async def test_packagist(get_version): | ||
assert await get_version("butterfly/example-web-application", { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Copyright (c) 2020 Felix Yan <[email protected]>, et al. | ||
|
||
import pytest | ||
pytestmark = [pytest.mark.asyncio(scope="session"), pytest.mark.needs_net] | ||
pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net] | ||
|
||
async def test_pagure(get_version): | ||
ver = await get_version("example", { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Copyright (c) 2013-2020 lilydjwg <[email protected]>, et al. | ||
|
||
import pytest | ||
pytestmark = [pytest.mark.asyncio(scope="session"), pytest.mark.needs_net] | ||
pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net] | ||
|
||
async def test_pypi(get_version): | ||
assert await get_version("example", { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Copyright (c) 2019-2020 lilydjwg <[email protected]>, et al. | ||
|
||
import pytest | ||
pytestmark = [pytest.mark.asyncio(scope="session"), | ||
pytestmark = [pytest.mark.asyncio, | ||
pytest.mark.needs_net] | ||
|
||
@pytest.mark.flaky(reruns=10) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# Copyright (c) 2020 Sunlei <[email protected]> | ||
|
||
import pytest | ||
pytestmark = [pytest.mark.asyncio(scope="session"), pytest.mark.needs_net] | ||
pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net] | ||
|
||
async def test_sparkle(get_version): | ||
assert await get_version('example', { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Copyright (c) 2013-2020 lilydjwg <[email protected]>, et al. | ||
|
||
import pytest | ||
pytestmark = pytest.mark.asyncio(scope="session") | ||
pytestmark = pytest.mark.asyncio | ||
|
||
async def test_substitute_prefix(get_version): | ||
assert await get_version("example", { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# Copyright (c) 2017 Felix Yan <[email protected]>, et al. | ||
|
||
import pytest | ||
pytestmark = [pytest.mark.asyncio(scope="session"), pytest.mark.needs_net] | ||
pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net] | ||
|
||
@pytest.mark.flaky | ||
async def test_ubuntupkg(get_version): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Copyright (c) 2013-2021 Th3Whit3Wolf <[email protected]>, et al. | ||
|
||
import pytest | ||
pytestmark = [pytest.mark.asyncio(scope="session"), pytest.mark.needs_net] | ||
pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net] | ||
|
||
async def test_vsmarketplace(get_version): | ||
assert await get_version("usernamehw.indent-one-space", { | ||
|