Added a service that can get all current tournaments list

This commit is contained in:
Stanislas Jouffroy 2024-03-23 11:58:07 +01:00
parent 3d0bd47079
commit a622ee69de
4 changed files with 53 additions and 4 deletions

View file

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