Ability to book a single court at a given time with gestion-sports
This commit is contained in:
parent
3f18f0f4a2
commit
e953a4110b
14 changed files with 489 additions and 66 deletions
|
@ -7,6 +7,7 @@ from resa_padel import booking
|
|||
user = "user"
|
||||
password = "password"
|
||||
club_id = "98"
|
||||
court_id = "11"
|
||||
|
||||
|
||||
# FIXME
|
||||
|
@ -34,9 +35,10 @@ def test_booking_does_the_rights_calls():
|
|||
)
|
||||
|
||||
session = loop.run_until_complete(
|
||||
booking.book(booking_url, user, password, club_id)
|
||||
booking.book(booking_url, user, password, club_id, court_id)
|
||||
)
|
||||
|
||||
cookies = session.cookie_jar.filter_cookies(booking_url)
|
||||
# assert cookies.get("connection_called") == "True"
|
||||
# assert cookies.get("login_called") == "True"
|
||||
# assert cookies.get("booking_called") == "True"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue