Adrián Chaves
7bb5289ced
Cover additional behavior changes in tests
2023-01-10 21:11:57 +01:00
Adrián Chaves
86baef02a0
Test Content-Encoding against Content-Disposition, URL and body
2023-01-10 20:51:43 +01:00
Adrián Chaves
deab93b243
Remove duplicate test
2023-01-10 19:04:52 +01:00
Adrián Chaves
fc2833d6bd
Fix _get_encoding_or_mime_type_from_headers handling on comma-separated Content-Encoding values
2023-01-10 18:32:27 +01:00
Adrián Chaves
68fccc9f04
Test that Content-Disposition takes precedence over body
2023-01-10 16:45:33 +01:00
Adrián Chaves
f538252d3b
crazy_case → odd_capitalize
2023-01-10 16:40:21 +01:00
Adrián Chaves
14464388e8
Address flake8 issues
2023-01-10 16:38:42 +01:00
Adrián Chaves
dd4f4f094e
Test handling of feeds mislabeled as HTML
2023-01-10 16:33:54 +01:00
Adrián Chaves
2178521a79
Make sure that supplied “unknown” MIME types from Content-Type are ignored
2023-01-10 13:41:36 +01:00
Adrián Chaves
8908151608
Test that MIME parameters do not break response class choice
2023-01-10 13:01:25 +01:00
Adrián Chaves
45b95c63d7
Address issues reported by pylint
2023-01-10 11:30:06 +01:00
Adrián Chaves
e7e201d0b9
Extend tests covering body-based response class choice
2023-01-10 11:15:56 +01:00
Adrián Chaves
fcc9e90553
Wrap XHTML with XmlResponse
2023-01-10 07:30:40 +01:00
Adrián Chaves
827de3d288
Finish cleaning up POST_XTRACTMIME_SCENARIOS
2023-01-08 17:22:12 +01:00
Adrián Chaves
711a6093e1
Finish cleaning up PRE_XTRACTMIME_SCENARIOS
2023-01-08 17:02:56 +01:00
Adrián Chaves
b2f2788bd4
Add tests for binary-vs-text body
2023-01-08 16:36:35 +01:00
Adrián Chaves
f9f9d61457
Always prefer Content-Type over Content-Disposition
2023-01-08 15:46:32 +01:00
Adrián Chaves
e7d36a305d
Ignore file path extensions in HTTP responses
2023-01-08 14:24:54 +01:00
Adrián Chaves
fa3ba512d9
Uncomment test scenarios
2023-01-08 13:21:36 +01:00
Adrián Chaves
f029be3aa7
Fix Apache bug handling
2023-01-08 12:55:17 +01:00
Adrián Chaves
e96b07bd4b
flake8: ignore failing file for the time being
2023-01-08 11:38:46 +01:00
Adrián Chaves
b336980bd1
Merge remote-tracking branch 'upstream/master' into integrate-mime
2023-01-02 13:14:39 +01:00
Matthew Donoughe
40d9ca3bdd
use pathlib
2022-10-17 17:40:10 -04:00
Mikhail Korobov
b103664bf4
Address 2/3 of warnings from tests ( #5561 )
2022-07-19 17:39:26 +02:00
Adrián Chaves
42bca211d9
test_get_response_class_http: progress on documenting behavior changes
2022-06-30 21:28:02 +02:00
Adrián Chaves
0a77bfe2a0
get_response_class: use Response for compressed data
2022-06-30 20:39:34 +02:00
Adrián Chaves
b7e88f4357
test_get_response_class_http: cover Apache bug scenarios
2022-06-30 19:12:13 +02:00
Adrián Chaves
983aa66687
Test ResponseTypes MIME types with the new implementation
2022-06-30 16:49:13 +02:00
Adrián Chaves
fd2317bd6d
Implement scrapy.utils.response.get_response_class
2022-06-30 15:15:52 +02:00
Samuel Marchal
75ed765476
Test coverage for open_in_browser base tag injection ( #5319 )
2021-11-15 16:44:56 +01:00
Eugenio Lacuesta
9aea1f0961
Remove backslash (tests)
2020-07-09 11:04:46 -03:00
Eugenio Lacuesta
5ab0f189ce
Remove six.moves occurrences from tests
2019-11-03 00:01:09 -03:00
pawelmhm
65c7c05060
response_status_message should not fail on non-standard HTTP codes
...
utility is used in retry middleware and it was failing to handle non-standard HTTP codes.
Instead of raising exceptions when passing through to_native_str it should return
"Unknown status" message.
2016-03-12 14:16:40 +01:00
Mikhail Korobov
7f927f68e1
PY3 port scrapy.utils.response
2015-08-01 00:35:43 +05:00
Daniel Graña
242c08553f
move tests under root dir
2014-07-30 19:45:08 -03:00