Skip to content

Commit

Permalink
mercurial: tests: update asyncio mark
Browse files Browse the repository at this point in the history
  • Loading branch information
lilydjwg committed Mar 9, 2024
1 parent 1005bd5 commit 4ec12d3
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions tests/test_mercurial.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
# Copyright (c) 2020 Felix Yan <felixonmars@archlinux.org>, 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"

0 comments on commit 4ec12d3

Please sign in to comment.