toulouse-maelis: [functest] add tests on activities (#76089) #168

Merged
nroche merged 4 commits from wip/76089-parsifal-functest-on-activity into main 2023-04-07 13:55:13 +02:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit d1fea2f13f - Show all commits

View File

@ -70,8 +70,8 @@ def check(args):
for unit in activity['unitInfoList']:
print(' * %s / %s' % (unit['idUnit'], unit['libelle']))
print(' start: %s' % (unit['dateStart'].strftime('%Y-%m-%d')))
print(' end: %s' % (unit['dateEnd'].strftime('%Y-%m-%d')))
print(' start: %s' % (unit['dateStart'].strftime('%Y-%m-%d') if unit['dateStart'] else None))
print(' end: %s' % (unit['dateEnd'].strftime('%Y-%m-%d') if unit['dateEnd'] else None))
# print(' places: %s' % len(unit['placeInfoList']))
for item in unit['placeInfoList']: