tribler.test_unit.core.rss.test_rss
Classes
Mocked RSSWatcher that doesn't communicate with the Internet. |
|
Tests for the RSSWatcher class. |
Module Contents
- class tribler.test_unit.core.rss.test_rss.MockWatcher(task_manager: ipv8.taskmanager.TaskManager, notifier: tribler.core.notifier.Notifier, url: str)
Bases:
tribler.core.rss.rss.RSSWatcherMocked RSSWatcher that doesn’t communicate with the Internet.
- cg_response
- cg_response_content = b'test'
- class tribler.test_unit.core.rss.test_rss.TestRSSWatcher
Bases:
ipv8.test.base.TestBaseTests for the RSSWatcher class.
- async test_resolve_malformed() None
Test if no notification is not sent when a URL resolves to bad metainfo.
- async test_skip_check() None
Test if no notification is not sent when a URL resolves to bad metainfo.
- async test_check_304() None
Test if a check does not schedule RSS parsing after an HTTP 304 response.