Skip to content

Commit

Permalink
[#4] Fix node endpoint tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dedenbangkit committed Sep 1, 2023
1 parent ed95fd7 commit bf63743
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions backend/akvo/core_node/tests/test_endpoint_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ def test_endpoint_node_view(self):
)
self.assertEqual(data.status_code, 200)
result = data.json()
for each in result:
each.pop('id')
expected_result = [
{'id': 1, 'code': 'JKT', 'name': 'Jakarta'},
{'id': 2, 'code': 'DPS', 'name': 'Denpasar'},
{'id': 3, 'code': 'DIY', 'name': 'Daerah Istimewa Yogyakarta'}
{'code': 'JKT', 'name': 'Jakarta'},
{'code': 'DPS', 'name': 'Denpasar'},
{'code': 'DIY', 'name': 'Daerah Istimewa Yogyakarta'}
]
self.assertEqual(result, expected_result)

0 comments on commit bf63743

Please sign in to comment.