We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96d60bf commit f13f275Copy full SHA for f13f275
src/plone/restapi/tests/test_serializer_summary.py
@@ -273,7 +273,10 @@ def test_dx_event_with_recurrence_new_version(self):
273
tomorrow_str = tomorrow.strftime("%Y-%m-%d")
274
ot = OccurrenceTraverser(self.event, self.request)
275
ocurrence = ot.publishTraverse(self.request, tomorrow_str)
276
+ self.request.form["metadata_fields"] = ["start"]
277
summary = getMultiAdapter((ocurrence, self.request), ISerializeToJsonSummary)()
-
278
- self.assertEqual(summary["start"], tomorrow_str)
279
- self.assertEqual(summary["Title"], ocurrence.Title())
+ self.assertEqual(
+ datetime.fromisoformat(summary["start"]).date().isoformat(),
280
+ tomorrow.date().isoformat(),
281
+ )
282
+ self.assertEqual(summary["title"], ocurrence.Title())
0 commit comments