avoid error in debug log mode and rss entry without title (#16316)
This commit is contained in:
1 parent
b43c47cb17
commit
26d39d39ea
3 files changed
+10
-5
No files matched your search
@@ -160,11 +160,11 @@ class TestFeedreaderComponent(unittest.TestCase):
|
||||
manager, events = self.setup_manager(feed_data, max_entries=5)
|
||||
assert len(events) == 5
|
||||
|
||||
def test_feed_without_publication_date(self):
|
||||
"""Test simple feed with entry without publication date."""
|
||||
def test_feed_without_publication_date_and_title(self):
|
||||
"""Test simple feed with entry without publication date and title."""
|
||||
feed_data = load_fixture('feedreader3.xml')
|
||||
manager, events = self.setup_manager(feed_data)
|
||||
assert len(events) == 2
|
||||
assert len(events) == 3
|
||||
|
||||
def test_feed_invalid_data(self):
|
||||
"""Test feed with invalid data."""
|
||||
|
||||
Vendored
+5
@@ -21,6 +21,11 @@
|
||||
<link>http://www.example.com/link/2</link>
|
||||
<guid isPermaLink="false">GUID 2</guid>
|
||||
</item>
|
||||
<item>
|
||||
<description>Description 3</description>
|
||||
<link>http://www.example.com/link/3</link>
|
||||
<guid isPermaLink="false">GUID 3</guid>
|
||||
</item>
|
||||
|
||||
</channel>
|
||||
</rss>
|
||||
Reference in new issue
Block a user