Skip to content

Commit

Permalink
Accomodate asyncio changes
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackYps committed Jun 4, 2024
1 parent 143b532 commit 419d9f0
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 11 deletions.
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pytest]
asyncio_mode = auto
3 changes: 0 additions & 3 deletions tests/integration_tests/test_league_request_rating.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ async def league_service(database, message_queue_service):
service.kill()


pytestmark = pytest.mark.asyncio


async def test_rate_new_player(league_service):
new_player_id = 50
rating_type = "global"
Expand Down
2 changes: 0 additions & 2 deletions tests/integration_tests/test_message_queue_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
MessageQueueService,
message_to_dict)

pytestmark = pytest.mark.asyncio


@pytest.fixture
async def mq_service():
Expand Down
2 changes: 0 additions & 2 deletions tests/unit_tests/test_league_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
from service.league_service.typedefs import (InvalidScoreError, League,
LeagueScore)

pytestmark = pytest.mark.asyncio


@pytest.fixture
async def league_service(database, message_queue_service):
Expand Down
2 changes: 0 additions & 2 deletions tests/unit_tests/test_message_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
from service.message_queue_service import (ConnectionAttemptFailed,
MessageQueueService)

pytestmark = pytest.mark.asyncio


@pytest.fixture
async def mq_service():
Expand Down
2 changes: 0 additions & 2 deletions tests/unit_tests/test_season_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
league_season_division_subdivision)
from service.season_generator import SeasonGenerator

pytestmark = pytest.mark.asyncio


@pytest.fixture
def season_generator(database):
Expand Down

0 comments on commit 419d9f0

Please sign in to comment.