fix feedreader handling unrecognized published date (#28225)

This commit is contained in:
Malte Franken authored and Fabian Affolter committed 2019-10-31 21:05:42 +01:00
1 parent 82729bef70
commit d200c2dca2
3 files changed
+30 -3

No files matched your search

+6
View File
@@ -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"