Added a service that can get all current tournaments list
This commit is contained in:
parent
e6023e0687
commit
3d0bd47079
26 changed files with 4305 additions and 204 deletions
|
@ -4,7 +4,7 @@ from pathlib import Path
|
|||
import config
|
||||
import pendulum
|
||||
import pytest
|
||||
from connectors import GestionSportsConnector
|
||||
from gestion_sport_connector import GestionSportsConnector
|
||||
from models import BookingFilter, Club, User
|
||||
|
||||
TEST_FOLDER = Path(__file__).parent.parent
|
||||
|
@ -36,11 +36,17 @@ def booking_filter() -> BookingFilter:
|
|||
|
||||
@pytest.fixture
|
||||
def booking_success_response() -> dict:
|
||||
booking_success_file = RESPONSES_FOLDER / "booking_success.json"
|
||||
booking_success_file = RESPONSES_FOLDER / "booking-success.json"
|
||||
return json.loads(booking_success_file.read_text(encoding="utf-8"))
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def booking_failure_response() -> dict:
|
||||
booking_failure_file = RESPONSES_FOLDER / "booking_failure.json"
|
||||
return json.loads(booking_failure_file.read_text(encoding="utf-8"))
|
||||
file = RESPONSES_FOLDER / "booking-failure.json"
|
||||
return json.loads(file.read_text(encoding="utf-8"))
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def tournament_sessions_json() -> str:
|
||||
file = RESPONSES_FOLDER / "tournament-sessions.json"
|
||||
return file.read_text(encoding="utf-8")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue