Skip to content

Commit

Permalink
Add pytest asyncio markers to components tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ichorid committed Sep 27, 2021
1 parent 6ee630c commit b59d6b6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Expand Up @@ -2,6 +2,7 @@

from tribler_core.components.base import Component, ComponentError, Session, T

pytestmark = pytest.mark.asyncio

# pylint: disable=protected-access

Expand Down
Expand Up @@ -23,6 +23,7 @@
from tribler_core.components.watch_folder import WatchFolderComponent
from tribler_core.restapi.rest_manager import RESTManager

pytestmark = pytest.mark.asyncio

# pylint: disable=protected-access

Expand Down
Expand Up @@ -11,6 +11,8 @@
from tribler_core.restapi.base_api_test import do_request
from tribler_core.utilities.unicode import hexlify

pytestmark = pytest.mark.asyncio


@pytest.fixture
def bandwidth_database(tmp_path, peer_key):
Expand Down Expand Up @@ -70,7 +72,6 @@ async def test_get_history_no_community(bw_endpoint, aiohttp_client):
"""
await do_request(await aiohttp_client(bw_endpoint.app), 'history', expected_code=404)


async def test_get_history(bw_endpoint, bw_community, aiohttp_client):
"""
Testing whether the API returns the correct bandwidth balance history
Expand Down

0 comments on commit b59d6b6

Please sign in to comment.