Skip to content

Commit

Permalink
♻️(api) update timestamps fixtures to Ralph's format
Browse files Browse the repository at this point in the history
After sutdying some raw statements from ralph, I noticed
that statements' timestamps were stored as date and time
string with an offset from UTC, and not as UTC.
  • Loading branch information
lebaudantoine committed Jul 26, 2023
1 parent 1e87176 commit 2281d23
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/api/plugins/video/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ async def test_views_backend_query(http_client: AsyncClient, httpx_mock: HTTPXMo
# Define 3 video views fixtures
video_uuid = "uuid://ba4252ce-d042-43b0-92e8-f033f45612ee"
video_views_fixtures = [
{"timestamp": "2020-01-01T00:00:00.000Z", "time": 100},
{"timestamp": "2020-01-01T00:00:30.000Z", "time": 200},
{"timestamp": "2020-01-02T00:00:00.000Z", "time": 300},
{"timestamp": "2020-01-01T00:00:00.000+00:00", "time": 100},
{"timestamp": "2020-01-01T00:00:30.000+00:00", "time": 200},
{"timestamp": "2020-01-02T00:00:00.000+00:00", "time": 300},
]

# Build video statements from fixtures
Expand Down Expand Up @@ -135,9 +135,9 @@ async def test_unique_views_backend_query(
# Define 3 video views fixtures
video_uuid = "uuid://ba4252ce-d042-43b0-92e8-f033f45612ee"
video_views_fixtures = [
{"timestamp": "2020-01-01T00:00:00.000Z", "time": 100},
{"timestamp": "2020-01-01T00:00:30.000Z", "time": 200},
{"timestamp": "2020-01-02T00:00:00.000Z", "time": 300},
{"timestamp": "2020-01-01T00:00:00.000+00:00", "time": 100},
{"timestamp": "2020-01-01T00:00:30.000+00:00", "time": 200},
{"timestamp": "2020-01-02T00:00:00.000+00:00", "time": 300},
]

# Build video statements from fixtures
Expand Down

0 comments on commit 2281d23

Please sign in to comment.