Skip to content

Commit

Permalink
fix(tests): fixed failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
borolepratik committed Mar 12, 2024
1 parent c93ec48 commit ac86ce4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
32 changes: 16 additions & 16 deletions tests/test_next_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,27 @@ def test_get_next_event():
response = client.get("/next-event")
assert response.status_code == status.HTTP_200_OK
assert response.json() == {
"RoundNumber": 2,
"Country": "Saudi Arabia",
"Location": "Jeddah",
"OfficialEventName": "FORMULA 1 STC SAUDI ARABIAN GRAND PRIX 2024",
"EventDate": "2024-03-09 00:00:00",
"EventName": "Saudi Arabian Grand Prix",
"RoundNumber": 3,
"Country": "Australia",
"Location": "Melbourne",
"OfficialEventName": "FORMULA 1 ROLEX AUSTRALIAN GRAND PRIX 2024",
"EventDate": "2024-03-24 00:00:00",
"EventName": "Australian Grand Prix",
"EventFormat": "conventional",
"Session1": "Practice 1",
"Session1Date": "2024-03-07 16:30:00+03:00",
"Session1DateUtc": "2024-03-07 13:30:00",
"Session1Date": "2024-03-22 12:30:00+11:00",
"Session1DateUtc": "2024-03-22 01:30:00",
"Session2": "Practice 2",
"Session2Date": "2024-03-07 20:00:00+03:00",
"Session2DateUtc": "2024-03-07 17:00:00",
"Session2Date": "2024-03-22 16:00:00+11:00",
"Session2DateUtc": "2024-03-22 05:00:00",
"Session3": "Practice 3",
"Session3Date": "2024-03-08 16:30:00+03:00",
"Session3DateUtc": "2024-03-08 13:30:00",
"Session3Date": "2024-03-23 12:30:00+11:00",
"Session3DateUtc": "2024-03-23 01:30:00",
"Session4": "Qualifying",
"Session4Date": "2024-03-08 20:00:00+03:00",
"Session4DateUtc": "2024-03-08 17:00:00",
"Session4Date": "2024-03-23 16:00:00+11:00",
"Session4DateUtc": "2024-03-23 05:00:00",
"Session5": "Race",
"Session5Date": "2024-03-09 20:00:00+03:00",
"Session5DateUtc": "2024-03-09 17:00:00",
"Session5Date": "2024-03-24 15:00:00+11:00",
"Session5DateUtc": "2024-03-24 04:00:00",
"F1ApiSupport": True,
}
10 changes: 5 additions & 5 deletions tests/test_standings.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ def test_get_standings():
response = client.get("/standings")
assert response.status_code == status.HTTP_200_OK
assert response.json()["season"] == 2024
assert response.json()["round"] == 1
assert response.json()["round"] == 2
assert response.json()["DriverStandings"][0] == {
"position": "1",
"positionText": "1",
"points": "26",
"wins": "1",
"points": "51",
"wins": "2",
"Driver": {
"driverId": "max_verstappen",
"permanentNumber": "33",
Expand All @@ -44,8 +44,8 @@ def test_get_standings():
assert response.json()["ConstructorStandings"][0] == {
"position": "1",
"positionText": "1",
"points": "44",
"wins": "1",
"points": "87",
"wins": "2",
"Constructor": {
"constructorId": "red_bull",
"url": "http://en.wikipedia.org/wiki/Red_Bull_Racing",
Expand Down

0 comments on commit ac86ce4

Please sign in to comment.