From 297f2252a3c62f550336a2c796ae266b4e8a4f7d Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Sun, 26 Apr 2026 12:44:09 -0400 Subject: [PATCH] fix(test): repoint lookup tests to article_fetcher.fetch_article_text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The two test_lookup_tool.py cases were patching the now-deleted fabledassistant.services.rss._fetch_full_article. The trafilatura URL→text helper moved to services/article_fetcher in the RSS hard-cut. Co-Authored-By: Claude Opus 4.7 --- tests/test_lookup_tool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_lookup_tool.py b/tests/test_lookup_tool.py index f53e73d..1d9833d 100644 --- a/tests/test_lookup_tool.py +++ b/tests/test_lookup_tool.py @@ -34,7 +34,7 @@ async def test_lookup_wikipedia_miss_searxng_fallback(): with patch("fabledassistant.services.wikipedia.wiki_summary", new_callable=AsyncMock, return_value=None), \ patch("fabledassistant.config.Config") as mock_config, \ patch("fabledassistant.services.research._search_searxng", new_callable=AsyncMock, return_value=searxng_results), \ - patch("fabledassistant.services.rss._fetch_full_article", new_callable=AsyncMock, return_value="Full article about QUIC..."): + patch("fabledassistant.services.article_fetcher.fetch_article_text", new_callable=AsyncMock, return_value="Full article about QUIC..."): mock_config.searxng_enabled.return_value = True result = await lookup_tool(user_id=1, arguments={"query": "QUIC"}) @@ -59,7 +59,7 @@ async def test_lookup_parallel_both_sources(): with patch("fabledassistant.services.wikipedia.wiki_summary", new_callable=AsyncMock, return_value=wiki_data), \ patch("fabledassistant.config.Config") as mock_config, \ patch("fabledassistant.services.research._search_searxng", new_callable=AsyncMock, return_value=searxng_results), \ - patch("fabledassistant.services.rss._fetch_full_article", new_callable=AsyncMock, return_value="Current president is..."): + patch("fabledassistant.services.article_fetcher.fetch_article_text", new_callable=AsyncMock, return_value="Current president is..."): mock_config.searxng_enabled.return_value = True result = await lookup_tool(user_id=1, arguments={"query": "president of the united states"})