diff options
| author | A Farzat <a@farzat.xyz> | 2025-10-08 18:10:46 +0300 |
|---|---|---|
| committer | A Farzat <a@farzat.xyz> | 2025-10-08 18:10:46 +0300 |
| commit | 1d7afc2f1372e46a102d088242bbccec5ba5af4e (patch) | |
| tree | aa0a83acedb3b4c63ebfc1478228b55e6cfa29da /tests/feed.py | |
| parent | 05607dc845a1dd111fd393478acf084ca3532081 (diff) | |
| download | csca5028-1d7afc2f1372e46a102d088242bbccec5ba5af4e.tar.gz csca5028-1d7afc2f1372e46a102d088242bbccec5ba5af4e.zip | |
Add a title attribute to subscriptions
Diffstat (limited to 'tests/feed.py')
| -rw-r--r-- | tests/feed.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/feed.py b/tests/feed.py index 97a60ef..a9856a8 100644 --- a/tests/feed.py +++ b/tests/feed.py @@ -16,6 +16,7 @@ class TestFeeds(TestCase): sub = Subscription( _id="yt:channel:bla", link="http://www.youtube.com/feeds/videos.xml?channel_id=UCbla", + title="bla", time_between_fetches=5, ) sub._collection = self.collection @@ -28,7 +29,8 @@ class TestFeeds(TestCase): def test_feed_fetch(self) -> None: sub = Subscription( _id="yt:channel:hlgI3UHCOnwUGzWzbJ3H5w", - link=r"tests/data/feed@ytnnews24@001.xml", + link="tests/data/feed@ytnnews24@001.xml", + title="YTN", time_between_fetches=1, ) sub._collection = self.collection @@ -43,7 +45,8 @@ class TestFeeds(TestCase): def test_feed_update(self) -> None: sub = Subscription( _id="yt:channel:hlgI3UHCOnwUGzWzbJ3H5w", - link=r"tests/data/feed@ytnnews24@001.xml", + link="tests/data/feed@ytnnews24@001.xml", + title="YTN", time_between_fetches=1, ) sub._collection = self.collection |
