The current tests only test really limited part of the date mapper.
It only utilizes one field with only a start timestamp.
Other things to test:
date in textual representation
start date - end date
date only, time only, date+time fields
all-day events
timezone mapping

CommentFileSizeAuthor
#1 552480_better_date_test.patch4.02 KBaron novak

Comments

aron novak’s picture

Status: Active » Needs work
StatusFileSize
new4.02 KB

Patch for extended date mapper test.
Now it maps:
- timestamp to start_stamp
- textual date to start_date

To do:
- include a feed with multiple dates, so test end_stamp and end_date as well

aron novak’s picture

I improved the date mapper a little bit while writing the test above: #553566: More flexible date handling in date mapper.
Please apply that patch before trying the test.