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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue