fix feedreader handling unrecognized published date (#28225)
This commit is contained in:
parent
82729bef70
commit
d200c2dca2
3 changed files with 30 additions and 3 deletions
|
@ -163,6 +163,12 @@ class TestFeedreaderComponent(unittest.TestCase):
|
|||
manager, events = self.setup_manager(feed_data)
|
||||
assert len(events) == 3
|
||||
|
||||
def test_feed_with_unrecognized_publication_date(self):
|
||||
"""Test simple feed with entry with unrecognized publication date."""
|
||||
feed_data = load_fixture("feedreader4.xml")
|
||||
manager, events = self.setup_manager(feed_data)
|
||||
assert len(events) == 1
|
||||
|
||||
def test_feed_invalid_data(self):
|
||||
"""Test feed with invalid data."""
|
||||
feed_data = "INVALID DATA"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue