API - lint fix

This commit is contained in:
Sam 2023-04-08 11:15:18 +02:00
parent 5caecd5bef
commit 143086ad6f

View File

@ -972,10 +972,7 @@ class TestGetWorkoutsWithFilters(ApiTestCaseMixin):
workouts = data['data']['workouts']
assert len(workouts) == 1
assert 'Workout 3 of 7' == workouts[0]['title']
assert (
'Mon, 01 Jan 2018 00:00:00 GMT'
== workouts[0]['workout_date']
)
assert 'Mon, 01 Jan 2018 00:00:00 GMT' == workouts[0]['workout_date']
def test_it_gets_no_workouts_with_title_filter(
self,
@ -1073,7 +1070,6 @@ class TestGetWorkoutsWithFiltersAndPagination(ApiTestCaseMixin):
'total': 7,
}
def test_it_gets_all_workouts_with_title_filter(
self,
app: Flask,
@ -1106,6 +1102,7 @@ class TestGetWorkoutsWithFiltersAndPagination(ApiTestCaseMixin):
'total': 7,
}
class TestGetWorkout(ApiTestCaseMixin):
def test_it_gets_a_workout(
self,