From f3d133528b0491b6f132768a776781e904fb999c Mon Sep 17 00:00:00 2001 From: stanislas Date: Tue, 5 Mar 2024 00:32:33 +0100 Subject: [PATCH] Fixed test --- tests/gestion_sports/test_gestion_sports_connector.py | 2 ++ tests/gestion_sports/test_gestion_sports_platform.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/tests/gestion_sports/test_gestion_sports_connector.py b/tests/gestion_sports/test_gestion_sports_connector.py index 82bcf91..c279263 100644 --- a/tests/gestion_sports/test_gestion_sports_connector.py +++ b/tests/gestion_sports/test_gestion_sports_connector.py @@ -83,6 +83,7 @@ async def test_should_login_to_gestion_sports_website( @pytest.mark.asyncio +@pytest.mark.slow async def test_booking_url_should_be_reachable( a_user: User, a_booking_filter: BookingFilter, a_club: Club ) -> None: @@ -165,6 +166,7 @@ def test_response_status_should_be_not_ok(a_booking_failure_response: str) -> No @pytest.mark.asyncio +@pytest.mark.slow async def test_get_user_ongoing_bookings(a_user: User, a_club: Club) -> None: """ Test that the user has 2 ongoing bookings diff --git a/tests/gestion_sports/test_gestion_sports_platform.py b/tests/gestion_sports/test_gestion_sports_platform.py index d581570..7332bc5 100644 --- a/tests/gestion_sports/test_gestion_sports_platform.py +++ b/tests/gestion_sports/test_gestion_sports_platform.py @@ -16,6 +16,7 @@ from tests.fixtures import ( a_booking_success_response, a_club, a_user, + mes_resas_html, ) @@ -28,6 +29,7 @@ async def test_booking( a_user: User, a_club: Club, a_booking_filter: BookingFilter, + mes_resas_html: str, ): """ Test a single court booking without reading the conf from environment variables @@ -49,6 +51,7 @@ async def test_booking( fixtures.url, a_booking_failure_response, a_booking_success_response, + mes_resas_html, ) async with GestionSportsPlatform(a_club) as gs_operations: