Added a service that can get all current tournaments list
This commit is contained in:
parent
3d0bd47079
commit
a622ee69de
4 changed files with 53 additions and 4 deletions
|
@ -57,3 +57,18 @@ def test_main_booking():
|
|||
)
|
||||
def test_main_cancellation():
|
||||
booking.main()
|
||||
|
||||
|
||||
@patch.dict(
|
||||
os.environ,
|
||||
{
|
||||
"CLUB_ID": "tpc",
|
||||
"ACTION": "tournaments",
|
||||
"LOGIN": "padel.testing@jouf.fr",
|
||||
"PASSWORD": "ridicule",
|
||||
},
|
||||
clear=True,
|
||||
)
|
||||
def test_main_tournaments():
|
||||
tournaments = booking.main()
|
||||
assert len(tournaments) != 0
|
||||
|
|
|
@ -191,10 +191,8 @@ async def test_cancel_booking_id(connector, user):
|
|||
async with ClientSession() as session:
|
||||
await connector.land(session)
|
||||
await connector.login(session, user)
|
||||
ongoing_bookings = await connector.get_ongoing_bookings(session)
|
||||
booking_id = ongoing_bookings[0].id
|
||||
|
||||
response = await connector.cancel_booking_id(session, 666)
|
||||
await connector.cancel_booking_id(session, 666)
|
||||
|
||||
assert len(await connector.get_ongoing_bookings(session)) == 0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue