From 4ec12d30fdceb1ce4e2cd0cf74aab7a6e9eb324a Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Sat, 9 Mar 2024 19:59:01 +0800 Subject: [PATCH] mercurial: tests: update asyncio mark --- tests/test_mercurial.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/test_mercurial.py b/tests/test_mercurial.py index df92fa07..e35d4c7f 100644 --- a/tests/test_mercurial.py +++ b/tests/test_mercurial.py @@ -2,10 +2,13 @@ # Copyright (c) 2020 Felix Yan , et al. import pytest -pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net] +pytestmark = [ + pytest.mark.asyncio(scope="session"), + pytest.mark.needs_net, +] async def test_mercurial(get_version): - assert await get_version("example", { - "source": "mercurial", - "mercurial": "https://repo.mercurial-scm.org/hg-website/json-tags", - }) == "v1.0" + assert await get_version("example", { + "source": "mercurial", + "mercurial": "https://repo.mercurial-scm.org/hg-website/json-tags", + }) == "v1.0"