Added a lot of unit tests
This commit is contained in:
parent
0938fb98b7
commit
16d4a0724c
32 changed files with 4268 additions and 497 deletions
92
tests/data/configuration/clubs.yaml
Normal file
92
tests/data/configuration/clubs.yaml
Normal file
|
@ -0,0 +1,92 @@
|
|||
clubs:
|
||||
- name: Super Club
|
||||
url: https://www.super-club.com
|
||||
id: sc
|
||||
bookingPlatform:
|
||||
id: gestion-sports
|
||||
clubId: 54
|
||||
url: https://superclub.flapi.fr
|
||||
hoursBeforeCancellation: 10
|
||||
bookingOpening:
|
||||
daysBefore: 10
|
||||
time: 22:37
|
||||
totalBookings:
|
||||
peakHours: 3
|
||||
offPeakHours: unlimited
|
||||
sports:
|
||||
- name: Sport1
|
||||
id: 22
|
||||
duration: 55
|
||||
price: 78
|
||||
players: 4
|
||||
courts:
|
||||
- name: Court 1
|
||||
number: 1
|
||||
id: 54
|
||||
isIndoor: True
|
||||
- name: Court 2
|
||||
number: 2
|
||||
id: 67
|
||||
isIndoor: False
|
||||
- name: Court 3
|
||||
number: 3
|
||||
id: 26
|
||||
isIndoor: True
|
||||
- name: Sport2
|
||||
id: 25
|
||||
duration: 22
|
||||
price: 3
|
||||
players: 2
|
||||
courts:
|
||||
- name: Court 1
|
||||
id: 99
|
||||
number: 1
|
||||
isIndoor: True
|
||||
- name: Court 2
|
||||
number: 2
|
||||
id: 101
|
||||
isIndoor: False
|
||||
|
||||
- name: Club Pourri
|
||||
url: https://www.clubpourri.fr
|
||||
id: cp
|
||||
bookingPlatform:
|
||||
id: gestion-sports
|
||||
clubId: 1111
|
||||
url: https://clubpourri.flapi.fr
|
||||
hoursBeforeCancellation: 24
|
||||
bookingOpening:
|
||||
daysBefore: 2
|
||||
time: 02:54
|
||||
totalBookings:
|
||||
peakHours: 4
|
||||
offPeakHours: unlimited
|
||||
sports:
|
||||
- name: Sport1
|
||||
id: 465
|
||||
duration: 44
|
||||
price: 98
|
||||
players: 4
|
||||
courts:
|
||||
- name: Court 7
|
||||
number: 15
|
||||
id: 987
|
||||
isIndoor: True
|
||||
- name: prout prout
|
||||
number: 555
|
||||
id: 747
|
||||
isIndoor: False
|
||||
- name: Sport3
|
||||
id: 321
|
||||
duration: 11
|
||||
price: 18
|
||||
players: 2
|
||||
courts:
|
||||
- name: Court 1
|
||||
id: 613
|
||||
isIndoor: True
|
||||
number: 1
|
||||
- name: Court 2
|
||||
id: 614
|
||||
isIndoor: True
|
||||
number: 2
|
Loading…
Add table
Add a link
Reference in a new issue