From 4aba7e5f6675703159220ee22bba6953c5685ef6 Mon Sep 17 00:00:00 2001 From: Andrey Rakhmatullin Date: Fri, 25 Apr 2025 20:16:26 +0500 Subject: [PATCH] Mention the deprecation of TestSpider. --- docs/news.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/news.rst b/docs/news.rst index 74a26c383..7bb25e6b6 100644 --- a/docs/news.rst +++ b/docs/news.rst @@ -149,6 +149,11 @@ Deprecations If you need to use them in your tests or code, you can copy the code from Scrapy. (:issue:`6696`) +- ``scrapy.utils.test.TestSpider`` is deprecated. If you need an empty spider + class you can use :class:`scrapy.utils.spider.DefaultSpider` or create your + own subclass of :class:`scrapy.Spider`. + (:issue:`6678`) + - ``scrapy.downloadermiddlewares.ajaxcrawl.AjaxCrawlMiddleware`` is deprecated. It was disabled by default and isn't useful for most of the existing websites.