Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
davisagli authored Oct 7, 2023
1 parent 4dfa9e9 commit 24f9439
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plone/restapi/tests/test_serializer_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_lazy_map_serialization(self):
results = getMultiAdapter((lazy_map, self.request), ISerializeToJson)()

self.assertEqual(results["@id"], "http://nohost")
self.assertEqual(results["@items_total"], 3)
self.assertEqual(results["items_total"], 3)
self.assertEqual(3, len(results["items"]))

@unittest.skipIf(HAS_PLONE_6, "... before it was not")
Expand All @@ -66,7 +66,7 @@ def test_lazy_map_serialization_plone5(self):
results = getMultiAdapter((lazy_map, self.request), ISerializeToJson)()

self.assertEqual(results["@id"], "http://nohost")
self.assertEqual(results["@items_total"], 2)
self.assertEqual(results["items_total"], 2)
self.assertEqual(2, len(results["items"]))

def test_lazy_map_serialization_with_fullobjects(self):
Expand All @@ -77,7 +77,7 @@ def test_lazy_map_serialization_with_fullobjects(self):
)

self.assertEqual(results["@id"], "http://nohost")
self.assertEqual(results["@items_total"], 1)
self.assertEqual(results["items_total"], 1)
self.assertEqual(1, len(results["items"]))
result_item = results["items"][0]

Expand Down

0 comments on commit 24f9439

Please sign in to comment.