mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-04-13 18:11:03 +08:00
19 lines
670 B
Python
19 lines
670 B
Python
from module.rss.engine import RSSEngine
|
|
|
|
from .test_database import engine as e
|
|
|
|
|
|
def test_rss_engine():
|
|
with RSSEngine(e) as engine:
|
|
rss_link = "https://mikanani.me/RSS/Bangumi?bangumiId=2353&subgroupid=552"
|
|
|
|
engine.add_rss(rss_link, aggregate=False)
|
|
|
|
result = engine.rss.search_active()
|
|
assert result[1].item_path == "Mikan Project - 无职转生~到了异世界就拿出真本事~"
|
|
|
|
new_torrents = engine.pull_rss(result[1])
|
|
torrent = new_torrents[0]
|
|
assert torrent.name == "[Lilith-Raws] 无职转生,到了异世界就拿出真本事 / Mushoku Tensei - 11 [Baha][WEB-DL][1080p][AVC AAC][CHT][MP4]"
|
|
|