API - fix order by for PGSQL15 support and update tests

This commit is contained in:
Sam
2022-10-26 18:05:22 +02:00
parent ef1c96d1f9
commit b86a1b93f9
5 changed files with 54 additions and 69 deletions

View File

@ -154,7 +154,9 @@ def seven_workouts_user_1() -> List[Workout]:
workout_4 = Workout(
user_id=1,
sport_id=1,
workout_date=datetime.datetime.strptime('23/02/2018', '%d/%m/%Y'),
workout_date=datetime.datetime.strptime(
'23/02/2018 10:00', '%d/%m/%Y %H:%M'
),
distance=1,
duration=datetime.timedelta(seconds=600),
)