Fixed test

This commit is contained in:
Stanislas Jouffroy 2024-03-05 00:32:33 +01:00
parent 559c3b6d69
commit f3d133528b
2 changed files with 5 additions and 0 deletions

View file

@ -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

View file

@ -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: