Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Silence deprecation warnings in TestFormRequest. (#7491)

Andrey Rakhmatullin33452f3aeb85
diff --git a/tests/test_http_request_form.py b/tests/test_http_request_form.py
index 8ba9f3422..a4f87d50d 100644
--- a/tests/test_http_request_form.py
+++ b/tests/test_http_request_form.py
@@ -26,6 +26,7 @@ def _qs(req, encoding="utf-8", to_unicode=False):
return parse_qs(uqs, True)
[email protected]("ignore::scrapy.exceptions.ScrapyDeprecationWarning")
class TestFormRequest(TestRequest):
request_class = FormRequest # type: ignore[assignment]