Download & Extend

More extensive tests in feedapi_mapper_date.test

Project:Feed Element Mapper
Version:6.x-2.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Aron Novak
Status:needs work

Issue Summary

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

Comments

#1

Status:active» needs work

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

AttachmentSize
552480_better_date_test.patch 4.02 KB

#2

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.

nobody click here