From eb9bfe16265f376033143cc1f4168f9ea0c37851 Mon Sep 17 00:00:00 2001 From: Aron Radics Date: Wed, 13 Nov 2024 21:13:25 +0100 Subject: [PATCH] Fix module_test --- tests/test_module/test.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_module/test.py b/tests/test_module/test.py index c4e412d..5f30daf 100644 --- a/tests/test_module/test.py +++ b/tests/test_module/test.py @@ -26,8 +26,9 @@ def test_rss(self, client): rss_url = os.environ["RSS_URL"] torrents = client.get_by_rss(rss_url) - assert len(list(torrents)) == 1 - torrent = torrents[0] + torrents_list = list(torrents) + assert len(torrents_list) == 1 + torrent = torrents_list[0] assert isinstance(torrent, Torrent) assert "FORREST" in torrent["title"].upper()