diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..d280de0 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,2 @@ +[pytest] +asyncio_mode = auto \ No newline at end of file diff --git a/tests/integration_tests/test_league_request_rating.py b/tests/integration_tests/test_league_request_rating.py index b01a76c..e68e1ae 100644 --- a/tests/integration_tests/test_league_request_rating.py +++ b/tests/integration_tests/test_league_request_rating.py @@ -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" diff --git a/tests/integration_tests/test_message_queue_service.py b/tests/integration_tests/test_message_queue_service.py index 37943d9..6e46c78 100644 --- a/tests/integration_tests/test_message_queue_service.py +++ b/tests/integration_tests/test_message_queue_service.py @@ -8,8 +8,6 @@ MessageQueueService, message_to_dict) -pytestmark = pytest.mark.asyncio - @pytest.fixture async def mq_service(): diff --git a/tests/unit_tests/test_league_service.py b/tests/unit_tests/test_league_service.py index b4a622e..f8ad877 100644 --- a/tests/unit_tests/test_league_service.py +++ b/tests/unit_tests/test_league_service.py @@ -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): diff --git a/tests/unit_tests/test_message_queue.py b/tests/unit_tests/test_message_queue.py index 5643a9a..3e9e155 100644 --- a/tests/unit_tests/test_message_queue.py +++ b/tests/unit_tests/test_message_queue.py @@ -4,8 +4,6 @@ from service.message_queue_service import (ConnectionAttemptFailed, MessageQueueService) -pytestmark = pytest.mark.asyncio - @pytest.fixture async def mq_service(): diff --git a/tests/unit_tests/test_season_generator.py b/tests/unit_tests/test_season_generator.py index 8b71848..a778beb 100644 --- a/tests/unit_tests/test_season_generator.py +++ b/tests/unit_tests/test_season_generator.py @@ -9,8 +9,6 @@ league_season_division_subdivision) from service.season_generator import SeasonGenerator -pytestmark = pytest.mark.asyncio - @pytest.fixture def season_generator(database):