Andrey Rakhmatullin
4279f2837c
Enable the flake8-builtins rules. ( #6942 )
2025-07-05 21:43:18 +05:00
Andrey Rakhmatullin
1843a4f753
Converting tests to plain asserts, part 3. ( #6700 )
2025-03-06 20:50:14 +01:00
Andrey Rakhmatullin
8d92c28a16
Switch to pytest.raises(). ( #6680 )
...
* Switch to pytest.raises().
* Add matches= to broad pytest.raises().
* Adjust the test_nonserializable_object() regex for Python <= 3.11.
* Adjust the test_nonserializable_object() regex for PyPy.
* Adjust other test exception regexes for PyPy.
* Cleanup.
2025-02-27 23:13:04 +05:00
Andrey Rakhmatullin
c330a399dc
Merge pull request #6601 from wRAR/ruff-rules-5
...
Add more Ruff rules, do some pylint cleanups
2025-01-02 17:38:15 +04:00
Andrey Rakhmatullin
6ae5b92671
Drop the remaining unittest.main() blocks. ( #6602 )
2025-01-02 12:45:04 +01:00
Andrey Rakhmatullin
838ff99f37
Enable RUF Ruff rules.
2025-01-01 21:41:08 +05:00
Andrey Rakhmatullin
93644f2c30
Add flake8-pie rules to ruff.
2024-12-12 20:33:35 +05:00
Andrey Rakhmatullin
d85c39f5bc
Deprecation removals. ( #6500 )
...
* Deprecation removals.
* Clean up the default pytest filterwarnings.
* Remove test_get_images_old().
* Redo boto-requiring test filtering.
* Remove an unused function.
* Improve the Crawler.crawl() error message.
* Fix the test.
2024-10-31 18:06:22 +05:00
Andrey Rakhmatullin
922ff57384
Improve the backwards compatibility for RetryMiddleware.EXCEPTIONS_TO_RETRY.
2023-09-14 15:51:00 +04:00
Serhii A
777a6ea412
Make the retry middleware exception list configurable ( #5929 )
2023-06-16 15:46:06 +02:00
Adrián Chaves
b07d3f85a3
Upgrade CI tools
2023-02-02 06:37:40 +01:00
Jalil SA
a5c1ef8276
sort imports with isort
2023-01-25 14:25:15 -06:00
Emmanuel Rondan
e211ec0aa2
adding black formatter to all the code
2022-11-29 11:30:46 -03:00
Eugenio Lacuesta
9e62355271
Allow logger/stats customization in get_retry_request
2021-03-02 12:12:22 -03:00
Adrián Chaves
1f7665c4cf
Silence a PyLint check on a mistake made for testing purposes
2021-02-22 16:48:10 +01:00
Adrián Chaves
722a33a2ac
Fix style issues
2021-02-22 16:42:38 +01:00
Adrián Chaves
80f5003c88
Add tests for get_retry_request
2021-02-22 16:38:38 +01:00
Ammar Najjar
58ca8bbf6d
Use f-strings ( #4307 )
2020-08-26 07:11:05 +02:00
Eugenio Lacuesta
9c6d13075a
Flake8: Remove E128 (tests, part 1)
2020-05-06 18:56:14 -03:00
Eugenio Lacuesta
4c12a234ae
Flake8: Remove E126
2020-05-06 16:10:21 -03:00
Marc Hernandez Cabot
a5de2c64e6
fix W291, W292, W293 (whitespaces)
2019-12-18 16:33:46 +01:00
Marc Hernández
63cf5c75c8
Fix E502: backslash is redundant between brackets ( #4238 )
2019-12-17 13:53:15 +01:00
harshasrinivas
38e6857c95
Improvise the clarity of test cases
2017-03-23 19:45:04 +05:30
harshasrinivas
0d9ebd6e1e
Update tests for max_retry_times
2017-03-19 06:15:46 +05:30
harshasrinivas
e321ac9931
Update unittests for max_retry_times
2017-03-15 04:12:32 +05:30
harshasrinivas
966bd49c42
Update unittest for meta['max_retry_times']
2017-03-14 16:23:47 +05:30
Mikhail Korobov
e285b1d6c2
retry stats
2017-02-14 20:27:49 +05:00
Mikhail Korobov
04b2f79e7a
Remove code required to support ancient twisted versions. See GH-1887.
2017-02-07 22:30:58 +05:00
nyov
534772f6ea
Import xlib.tx code from twisted proper
2016-12-02 21:21:51 +00:00
Raul Gallegos
f042ad0f39
py3 fix HttpProxy and Retry Middlewares
2016-01-21 09:35:04 -05:00
nyov
ecbfe4bd66
drop deprecated "optional_features" set
2015-09-15 09:00:08 +00:00
Julia Medina
d3f576a816
Move scrapy/spider.py to scrapy/spiders/__init__.py
2015-05-09 04:20:09 -03:00
Julia Medina
d7c444fefb
Move scrapy/contrib/downloadermiddleware to scrapy/downloadermiddlewares
2015-04-29 21:24:30 -03:00
Daniel Graña
ccde3317d7
Merge pull request #816 from Curita/api-cleanup
...
GSoC API cleanup
2014-09-01 21:55:36 -03:00
Rocio Aramberri
51b0bd281d
fix dont settings on meta behaviour, add docs and tests
2014-08-15 13:47:42 -07:00
Julia Medina
870438e5f4
Update tests utils, fixing get_crawler and removing docrawl
2014-08-12 14:02:56 -03:00
Daniel Graña
242c08553f
move tests under root dir
2014-07-30 19:45:08 -03:00