Skip to content

Commit

Permalink
DBC22-1956: unit test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-oxd committed Mar 26, 2024
1 parent c94a133 commit 2439ed0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1,090 deletions.
2 changes: 1 addition & 1 deletion src/backend/apps/event/tests/test_event_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def test_serializer_data(self):
assert self.serializer_two.data['route_display'] == \
"Test Road Two to Test Avenue Two"
assert self.serializer_two.data['direction_display'] == \
"Both"
"Both directions"

# Eastern time auto adjusted to Pacific time
assert self.serializer_two.data['last_updated'] == \
Expand Down
3 changes: 2 additions & 1 deletion src/backend/apps/webcam/tests/test_webcam_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@ def setUp(self):

self.serializer = WebcamSerializer(self.webcam)

# 2024/03/26 added 'dbc_mark' and 'credit'
def test_serializer_data(self):
assert len(self.serializer.data) == 24
assert len(self.serializer.data) == 26
Loading

0 comments on commit 2439ed0

Please sign in to comment.