1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-03-13 20:04:50 +00:00

45 Commits

Author SHA1 Message Date
Eugenio Lacuesta
54a786b102
Remove six imports 2019-11-03 00:58:47 -03:00
Eugenio Lacuesta
5ab0f189ce
Remove six.moves occurrences from tests 2019-11-03 00:01:09 -03:00
Andrey Rakhmatullin
397e883556 Replace to_native_str calls with to_unicode. 2019-10-31 15:22:53 +05:00
Andrey Rakhmatullin
75b1d051d9 Simplify some more imports. 2019-10-31 15:22:45 +05:00
Andrey Rakhmatullin
bbd9f4be90 Remove six.PY2 and six.PY3 conditionals. 2019-10-31 15:07:10 +05:00
Marc Hernández
ace2df3d14 Fix JSONRequest naming (#3982) 2019-08-30 11:03:44 +02:00
Marc Hernández
d76b6944c9 Create Request from curl command (#3862) 2019-08-08 09:43:42 +02:00
Eugenio Lacuesta
09e27d2d2e
[Tests] Monkey patch unittest.TestCase to prevent DeprecationWarning(s) 2019-07-13 19:26:59 -03:00
Mikhail Korobov
9aec7856b0
Merge pull request #3794 from csalazar/whitelist-form-methods-in-fromresponse
[MRG+1] Fix form methods in FormRequest.from_response (#3777)
2019-07-02 20:08:14 +05:00
Claudio Salazar
0c50879568 Change behavior to use method GET when there are unknown methods
in the form
2019-06-06 22:10:59 +02:00
Claudio Salazar
461682fc3d Whitelist form methods in FormRequest.from_response method 2019-05-25 11:01:19 +02:00
Eugenio Lacuesta
c43a23152b Merge remote-tracking branch 'upstream/master' into callback_kwargs 2019-03-27 14:42:41 -03:00
Eugenio Lacuesta
6760bca74b Rename Request.kwargs to Request.cb_kwargs 2019-03-15 22:42:29 +00:00
kasun Herath
3f914f6d8c made jsonrequest dump into private method 2019-01-14 23:03:14 +05:30
Eugenio Lacuesta
770a501fb3 Test request kwargs (copy, serialization) 2019-01-09 10:40:03 -03:00
kasun Herath
8f1507a4a5 dumps_kwargs 2018-12-17 23:14:06 +05:30
kasun Herath
ecda69130e allow to send empty data values and docs changes 2018-12-10 22:34:49 +05:30
kasun Herath
c347acbff6 warning if body and data are provided 2018-12-09 11:27:09 +05:30
kasun Herath
cd619c1d4f removed overriden replace method 2018-12-08 22:10:45 +05:30
kasun Herath
1b2b8b4bf0 fix tests under py3 2018-11-27 08:57:44 +05:30
kasun Herath
1ce6662a9d Implement Request subclass for json requests 2018-11-24 20:02:00 +05:30
Daniel Graña
db714f5a07
Merge pull request #3283 from CCInCharge/issue3247
Fix #3247: Allow scrapy.FormRequest.from_response method to handle duplicate keys
2018-08-02 14:49:14 -03:00
CCInCharge
782f866572 Fix #3247: Allow scrapy.FormRequest.from_response method to handle duplicate keys 2018-07-25 21:46:42 -07:00
Eugenio Lacuesta
6a38fc39f8 Include flags when copying requests 2018-07-19 11:56:23 -03:00
Viral Mehta
65744c2199 Corrected Test 2018-03-03 20:07:50 +05:30
Viral Mehta
d5b7ebcfdc Fixed bug FormRequest.from_response() clickdata ignores input[type=image] 2018-03-03 18:17:49 +05:30
Chomba Ng'ang'a
fd27cde24d Update asserts to use more generic ones 2017-08-09 12:52:10 +02:00
Chomba Ng'ang'a
4ca61a2051 Update deprecated test aliases
- change ``failIf`` to ``assertFalse``
- change ``asertEquals`` to ``assertEqual``
- change ``assert_`` to ``assertTrue``

https://docs.python.org/2/library/unittest.html#deprecated-aliases
2017-08-09 12:52:10 +02:00
Valdir Stumm Junior
60727dedf6 verify if Request callback is callable 2017-05-31 15:00:38 -03:00
Harrison Gregg
ffef828a8d Add test for dropping fields in from_response request body 2017-05-15 12:25:32 -04:00
Mikhail Korobov
074caf434e FormRequest: handle whitespaces in action attribute properly 2017-02-16 02:13:39 +05:00
Paul Tremberth
d42a98d3b5 Use newer w3lib.url.safe_url_string() and re-enable HTTP request tests 2016-04-12 00:33:25 +02:00
Capi Etheriel
659715ecd9 implements FormRequest.from_response CSS support 2016-01-21 01:05:20 -02:00
Νικόλαος-Διγενής Καραγιάννης
395ef805eb FormRequest: test unicode xpath expr & exception 2015-11-13 18:54:02 +02:00
Νικόλαος-Διγενής Καραγιάννης
7a438a51b7 FormRequest: test default <input> type (is text) 2015-11-13 18:03:54 +02:00
Νικόλαος-Διγενής Καραγιάννης
881bf19e68 FormRequest: test case-insensitive type attribute 2015-11-13 17:57:25 +02:00
Pengyu CHEN
e19bf4aecc added: Test case for the fix 2015-11-02 22:52:41 +08:00
Olaf Dietsche
2c28b53cc0 Add tests with incomplete buttons 2015-09-01 12:35:49 +02:00
Olaf Dietsche
e5f26078fa Add test: submit form with button control 2015-08-31 19:57:45 +02:00
Daniel Graña
de6e013b9a fix form requests tests on py3 2015-07-31 14:54:07 -03:00
Daniel Graña
786f62664b Merge pull request #1137 from DharmeshPandav/patch-1
Update form.py to improve existing capability
2015-07-31 11:00:57 -03:00
Mikhail Korobov
e853d9e910 partial port of Request and Response 2015-07-25 13:08:44 +02:00
mrpandav
954c8fcecb changes test_from_response_formname_notexists_fallback_formid unit test for pull request #1137 - addition of new shortcut for html form election by formid attribute 2015-04-15 16:49:09 +05:30
mrpandav
020a32a3d9 Adding tests for pull request #1137 - addition of new shortcut for html form election by formid attribute 2015-04-15 11:23:25 +05:30
Daniel Graña
242c08553f move tests under root dir 2014-07-30 19:45:08 -03:00