Andrey Rakhmatullin
804ae167df
Update tool versions ( #7127 )
2025-10-27 14:11:31 +01:00
Andrey Rakhmatullin
d414d393d4
Remove Python 3.9 support ( #7121 )
2025-10-27 12:37:49 +01:00
Andrey Rakhmatullin
d442227fa7
Converting tests to plain asserts, part 8. ( #6711 )
2025-03-09 20:24:12 +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
a898331d14
Preparations for switching to direct pytest. ( #6678 )
2025-02-16 20:28:58 +01:00
Andrey Rakhmatullin
cec0aeca58
Bump ruff, switch from black to ruff-format ( #6631 )
2025-01-27 11:07:09 +01:00
Andrey Rakhmatullin
838ff99f37
Enable RUF Ruff rules.
2025-01-01 21:41:08 +05:00
Andrey Rakhmatullin
897e124a27
Add flake8-return rules to ruff.
2024-12-12 20:32:25 +05:00
Andrey Rakhmatullin
feb0b8f7dc
Add pyupgrade.
2024-06-05 22:57:18 +05:00
Jalil SA
fd4292b722
fix: test_cache_json_response
2023-08-17 10:24:34 -06:00
Andrey Rakhmatullin
ea15ff1d32
Merge pull request #5915 from jxlil/feature/support-parsel-jmespath
...
Added support for the Parsel JMESPath feature
2023-05-03 13:18:39 +04:00
Laerte Pereira
7b49aa1b01
chore: add tests
2023-05-02 12:53:04 -03:00
Jalil SA
578606779d
update tests
2023-04-29 00:52:39 -06:00
Adrián Chaves
b07d3f85a3
Upgrade CI tools
2023-02-02 06:37:40 +01:00
Emmanuel Rondan
f2c22aaabb
Merge remote-tracking branch 'upstream/master' into add-black-formatter
2023-01-20 17:08:07 -03:00
Emmanuel Rondan
8ee4817471
reaplying black, fixing conflicts and ignoring bandit checks on test directory
2023-01-20 10:55:46 -03:00
Andrey Rakhmatullin
74b8c34de6
Merge pull request #5458 from reidemeister94/fix/unique-list-link-extractors
...
fix: return unique_list only when link_extractor.unique is True
2023-01-13 01:13:45 +05:00
spav
b386c64864
Fix tests for allowing duplicates in extract_links
2023-01-11 19:58:42 +01:00
Emmanuel Rondan
c5cdd0d30c
reaplying black again and removing line length on pre-commit black config
2022-12-29 12:48:20 -03:00
Emmanuel Rondan
303f0a70fc
re applying black to the code with default line length
2022-12-29 11:26:06 -03:00
Emmanuel Rondan
12b556a352
Merge branch 'master' into add-black-formatter
2022-12-26 12:25:32 -03:00
Josh Soref
a26b6b0607
spelling: indistinct
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2022-12-18 21:33:21 -05:00
Laerte Pereira
e099572cec
change xfail condition
2022-12-12 09:56:50 -03:00
Laerte Pereira
0dbd1d9b81
use xfail, switch to packaging to parse version
2022-12-12 08:58:40 -03:00
Laerte Pereira
6757973b61
fix test_follow_whitespace_* tests
2022-12-11 09:11:55 -03:00
Emmanuel Rondan
e211ec0aa2
adding black formatter to all the code
2022-11-29 11:30:46 -03:00
Mark Mayo
f9a29f03d9
Address some issues reported by Pylint ( #5677 )
...
Co-authored-by: Felipe Boff Nunes <51033921+felipeboffnunes@users.noreply.github.com>
Co-authored-by: Andrey Rahmatullin <wrar@wrar.name>
2022-11-27 11:00:13 +01:00
Andrey Rakhmatullin
5bf4260679
Update flake8.
2022-10-10 11:14:20 +06:00
Mohammadtaher Abbasi
a988c4b78b
add test
2022-08-29 17:08:30 +04:30
Eugenio Lacuesta
55ae2109c9
Remove deprecated TextResponse.body_as_unicode
2022-02-05 13:11:13 -03:00
Kian-Meng, Ang
3a263280ba
Fix typos
2021-10-11 22:32:42 +08:00
Andrey Rakhmatullin
93bf1ae7e3
Fix tests for the 3.10 TypeError message change.
2021-08-03 20:16:59 +05:00
Eugenio Lacuesta
cc89f6be38
Response.attributes ( #5218 )
2021-07-29 22:12:44 +02:00
Vostretsov Nikita
23cfdb058e
Reducing amount of warnings during test run ( #5162 )
...
* put flake8 options into separate file to remove pytest warnings
* remove ResourceLeaked warning in pypy
* suppress warnings from twisted
* ignore deprecation warnings here
* ignore deprecation warning in tests of deprecated methods
* ignore deprecation warnings here
* update test classes
* don`t use deprecated method call
* ignore deprecation warnings here
* proper warning class
* more selective ignoring
* Revert "don`t use deprecated method call"
This reverts commit 59216ab560 .
2021-05-28 14:45:06 +05:00
Marc Hernández
336f19f5cc
Change super syntax ( #4707 )
2020-08-04 20:42:01 +02:00
Adrián Chaves
890b2138a6
Remove the u prefix from strings
2020-07-30 13:39:30 +02:00
Bulat Khabibullin
5cef927944
Implement TextResponse.json() ( #4574 )
2020-06-01 06:57:23 +02:00
Eugenio Lacuesta
3eeecb4273
Merge branch 'master' into flake8-max-line-length
2020-05-15 11:11:20 -03:00
Adrián Chaves
e31b6ccc45
Merge branch 'master' into flake8-remove-e128
2020-05-13 22:39:45 +02:00
nsirletti
cb8140a42a
Deprecate Response.body_as_unicode() ( #4555 )
...
Co-authored-by: Nicolas Sirletti <n.sirletti@gmail.com>
2020-05-11 20:20:31 +02:00
Eugenio Lacuesta
be39f274b8
Merge branch 'master' into flake8-remove-e128
2020-05-08 18:33:29 -03:00
Antonio Gordillo Toledo
cf09af787e
Remove Python 2 encoding header from files ( #4553 )
2020-05-08 15:45:19 +02:00
Eugenio Lacuesta
9c6d13075a
Flake8: Remove E128 (tests, part 1)
2020-05-06 18:56:14 -03:00
Eugenio Lacuesta
01d73dd3f0
Merge branch 'master' into flake8-max-line-length
2020-04-15 09:24:33 -03:00
Eugenio Lacuesta
94d7ad76cb
Fix pycodestyle E2XX (whitespace) ( #4468 )
2020-04-15 14:11:37 +02:00
Eugenio Lacuesta
182394bcec
E501 compliance (tests)
2020-03-22 23:29:30 -03:00
Eugenio Lacuesta
8d30dc0888
Response.follow_all: return empty generators for empty sequences
2020-03-12 09:36:15 -03:00
Marc Hernández
91bbc70bc1
fix E30X flake8 ( #4355 )
2020-02-21 06:05:31 +01:00
Andrey Rahmatullin
88179027de
Merge pull request #4331 from Gallaecio/response-cb-kwargs
...
Implement Response.cb_kwargs
2020-02-19 22:40:14 +05:00
Adrián Chaves
43b43654a1
Add tests for meta and cb_kwargs not being available
2020-02-13 22:39:58 +01:00