Fixed test
This commit is contained in:
parent
559c3b6d69
commit
f3d133528b
2 changed files with 5 additions and 0 deletions
|
@ -83,6 +83,7 @@ async def test_should_login_to_gestion_sports_website(
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
|
@pytest.mark.slow
|
||||||
async def test_booking_url_should_be_reachable(
|
async def test_booking_url_should_be_reachable(
|
||||||
a_user: User, a_booking_filter: BookingFilter, a_club: Club
|
a_user: User, a_booking_filter: BookingFilter, a_club: Club
|
||||||
) -> None:
|
) -> None:
|
||||||
|
@ -165,6 +166,7 @@ def test_response_status_should_be_not_ok(a_booking_failure_response: str) -> No
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
|
@pytest.mark.slow
|
||||||
async def test_get_user_ongoing_bookings(a_user: User, a_club: Club) -> None:
|
async def test_get_user_ongoing_bookings(a_user: User, a_club: Club) -> None:
|
||||||
"""
|
"""
|
||||||
Test that the user has 2 ongoing bookings
|
Test that the user has 2 ongoing bookings
|
||||||
|
|
|
@ -16,6 +16,7 @@ from tests.fixtures import (
|
||||||
a_booking_success_response,
|
a_booking_success_response,
|
||||||
a_club,
|
a_club,
|
||||||
a_user,
|
a_user,
|
||||||
|
mes_resas_html,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -28,6 +29,7 @@ async def test_booking(
|
||||||
a_user: User,
|
a_user: User,
|
||||||
a_club: Club,
|
a_club: Club,
|
||||||
a_booking_filter: BookingFilter,
|
a_booking_filter: BookingFilter,
|
||||||
|
mes_resas_html: str,
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
Test a single court booking without reading the conf from environment variables
|
Test a single court booking without reading the conf from environment variables
|
||||||
|
@ -49,6 +51,7 @@ async def test_booking(
|
||||||
fixtures.url,
|
fixtures.url,
|
||||||
a_booking_failure_response,
|
a_booking_failure_response,
|
||||||
a_booking_success_response,
|
a_booking_success_response,
|
||||||
|
mes_resas_html,
|
||||||
)
|
)
|
||||||
|
|
||||||
async with GestionSportsPlatform(a_club) as gs_operations:
|
async with GestionSportsPlatform(a_club) as gs_operations:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue