Skip to content

Commit

Permalink
DBC22-893: unit test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-oxd committed Apr 15, 2024
1 parent b2e9cd7 commit 3c7181e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/apps/event/tests/test_event_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ def setUp(self):
self.serializer_five = EventSerializer(self.event_five)

def test_serializer_data(self):
assert len(self.serializer.data) == 26
assert len(self.serializer.data) == 27
# route_from beings with 'at '
assert self.serializer.data['route_display'] == \
"Test Road to Test Avenue"
assert self.serializer.data['direction_display'] == \
"Northbound"

assert len(self.serializer_two.data) == 26
assert len(self.serializer_two.data) == 27
# route_from doesn't being with 'at '
assert self.serializer_two.data['route_display'] == \
"Test Road Two to Test Avenue Two"
Expand Down

0 comments on commit 3c7181e

Please sign in to comment.