scrapy/tests
Victor Torres 47a992615a
serialize requests with callback references as spider attribute
You could define a spider attribute that references a callback method
but if this method has a different name than your spider attribute,
the request serializer is not able to find it on the spider class.

With this commit we're fixing this behavior as we're searching for
callback references in the spider object itself instead of looking
for attributes with the same function's name, that could be different.
2020-04-15 20:03:58 -03:00
..
CrawlerProcess Specify Twisted reactor (TWISTED_REACTOR setting) (#4294) 2020-02-06 22:42:34 +05:00
keys revert wrong changes 2018-03-13 13:05:37 +08:00
mocks Add missing blank lines between functions and classes 2019-11-18 17:16:09 +01:00
py36 Also test non-default async callbacks. 2020-02-11 01:00:16 +05:00
sample_data [Test] Rename outdated sample files 2019-11-20 09:38:54 -03:00
test_cmdline Remove object base class (#4430) 2020-03-16 20:12:46 +01:00
test_cmdline_crawl_with_pipeline Remove object base class (#4430) 2020-03-16 20:12:46 +01:00
test_settings Simplify some more imports. 2019-11-14 13:45:39 +05:00
test_spiderloader Add missing blank lines between functions and classes 2019-11-18 17:16:09 +01:00
test_utils_misc Scan callbacks/errbacks for return statements with values different than None 2019-12-16 11:30:40 -03:00
__init__.py Simplify some more imports. 2019-11-14 13:45:39 +05:00
constraints.txt Added constrain on lxml version based on Python version 2019-07-30 23:24:41 -03:00
ignores.txt Rename tests/py3-ignores.txt to tests/ignores.txt. 2019-11-19 13:52:49 +05:00
mockserver.py Remove a stray newline. 2019-12-20 19:37:50 +05:00
pipelines.py Remove object base class (#4430) 2020-03-16 20:12:46 +01:00
requirements-py3.txt Restrict pytest to versions prior to 5.4 2020-03-13 13:25:53 +01:00
spiders.py Add a test for an async callbacks that returns requests. 2020-02-07 17:14:52 +05:00
test_closespider.py [MRG+1] Show elapsed time in statscollector (#3638) 2019-04-07 00:03:40 +05:00
test_command_fetch.py Keep 2 spaces between code and inline comments (#4195) 2019-12-13 14:20:48 +01:00
test_command_parse.py Remove object base class (#4430) 2020-03-16 20:12:46 +01:00
test_command_shell.py Switch from ` to `` where inline code formatting is desired 2019-03-01 16:56:58 +01:00
test_command_version.py Fix test 2017-09-25 12:49:27 +02:00
test_commands.py Export to multiple formats in a single crawl 2020-03-05 09:33:57 -03:00
test_contracts.py Remove object base class (#4430) 2020-03-16 20:12:46 +01:00
test_crawl.py Fix pycodestyle E2XX (whitespace) (#4468) 2020-04-15 14:11:37 +02:00
test_crawler.py Remove object base class (#4430) 2020-03-16 20:12:46 +01:00
test_dependencies.py fix E30X flake8 (#4355) 2020-02-21 06:05:31 +01:00
test_downloader_handlers.py fix E22X flake8 2020-02-21 08:39:14 +01:00
test_downloadermiddleware.py Remove object base class (#4430) 2020-03-16 20:12:46 +01:00
test_downloadermiddleware_ajaxcrawlable.py Add missing blank lines between functions and classes 2019-11-18 17:16:09 +01:00
test_downloadermiddleware_cookies.py Fix pycodestyle E2XX (whitespace) (#4468) 2020-04-15 14:11:37 +02:00
test_downloadermiddleware_decompression.py PY3 fix test downloadermiddleware decompression 2015-07-29 13:51:01 +00:00
test_downloadermiddleware_defaultheaders.py Update deprecated test aliases 2017-08-09 12:52:10 +02:00
test_downloadermiddleware_downloadtimeout.py Update deprecated test aliases 2017-08-09 12:52:10 +02:00
test_downloadermiddleware_httpauth.py Update deprecated test aliases 2017-08-09 12:52:10 +02:00
test_downloadermiddleware_httpcache.py fix E30X flake8 (#4355) 2020-02-21 06:05:31 +01:00
test_downloadermiddleware_httpcompression.py fix E251 2020-02-22 12:32:38 +01:00
test_downloadermiddleware_httpproxy.py Remove unused imports 2019-11-21 14:21:17 +01:00
test_downloadermiddleware_redirect.py fix E30X flake8 (#4355) 2020-02-21 06:05:31 +01:00
test_downloadermiddleware_retry.py fix W291, W292, W293 (whitespaces) 2019-12-18 16:33:46 +01:00
test_downloadermiddleware_robotstxt.py Simplify some more imports. 2019-11-14 13:45:39 +05:00
test_downloadermiddleware_stats.py PY3 fix DownloaderStats middleware tests 2015-09-01 04:09:15 +05:00
test_downloadermiddleware_useragent.py Update deprecated test aliases 2017-08-09 12:52:10 +02:00
test_dupefilters.py Remove object base class (#4430) 2020-03-16 20:12:46 +01:00
test_engine.py Remove object base class (#4430) 2020-03-16 20:12:46 +01:00
test_exporters.py fix E30X flake8 (#4355) 2020-02-21 06:05:31 +01:00
test_extension_telnet.py Remove unused imports 2019-11-21 14:21:17 +01:00
test_feedexport.py Initial removal of twisted.internet.defer.returnValue 2020-04-13 06:12:30 -03:00
test_http_cookies.py Remove six.moves occurrences from tests 2019-11-03 00:01:09 -03:00
test_http_headers.py Merge remote-tracking branch 'upstream/master' into remove-six-code 2019-11-20 12:41:38 -03:00
test_http_request.py Merge pull request #4008 from elacuesta/docs_request_errback 2020-01-23 23:12:44 +05:00
test_http_response.py Fix pycodestyle E2XX (whitespace) (#4468) 2020-04-15 14:11:37 +02:00
test_item.py Remove object base class (#4430) 2020-03-16 20:12:46 +01:00
test_link.py Rename test_non_str_url_py2 to test_bytes_url. 2019-11-14 22:53:28 +05:00
test_linkextractors.py Update tests to account for link extractors escaping spaces 2020-02-12 19:00:04 +01:00
test_loader.py Remove object base class (#4430) 2020-03-16 20:12:46 +01:00
test_logformatter.py Remove object base class (#4430) 2020-03-16 20:12:46 +01:00
test_mail.py fix E30X flake8 (#4355) 2020-02-21 06:05:31 +01:00
test_middleware.py Remove object base class (#4430) 2020-03-16 20:12:46 +01:00
test_pipeline_crawl.py fix E131 2020-02-22 12:32:38 +01:00
test_pipeline_files.py fix E701 and E271 flake8 2020-02-22 12:32:38 +01:00
test_pipeline_images.py fix E30X flake8 (#4355) 2020-02-21 06:05:31 +01:00
test_pipeline_media.py Replace _DefGen_Return exception handling 2020-04-13 06:35:26 -03:00
test_pipelines.py Use get_from_asyncio_queue in the pipeline test. 2020-01-09 14:49:16 +05:00
test_proxy_connect.py Merge pull request #4198 from wRAR/deprecate-noconnect 2019-12-18 16:11:24 +05:00
test_request_cb_kwargs.py Remove object base class (#4430) 2020-03-16 20:12:46 +01:00
test_request_left.py name signla catcher in accord with signal name 2020-02-06 13:46:23 +00:00
test_responsetypes.py fix E30X flake8 (#4355) 2020-02-21 06:05:31 +01:00
test_robotstxt_interface.py fix W291, W292, W293 (whitespaces) 2019-12-18 16:33:46 +01:00
test_scheduler.py Remove object base class (#4430) 2020-03-16 20:12:46 +01:00
test_selector.py Remove unused imports 2019-11-21 14:21:17 +01:00
test_signals.py Improve async signal tests. 2020-02-11 01:05:45 +05:00
test_spider.py Deprecate Spider.make_requests_from_url, part 2 (#4412) 2020-03-12 20:15:49 +01:00
test_spidermiddleware.py fix E22X flake8 2020-02-21 08:39:14 +01:00
test_spidermiddleware_depth.py Fix W391 Blank line at end of file (#4137) 2019-11-07 17:47:35 +01:00
test_spidermiddleware_httperror.py [MRG+1] Automatic port selection for servicies in unit tests (#3210) 2018-05-23 21:25:50 +03:00
test_spidermiddleware_offsite.py Ignore a domain in allowed_domains with port and issue a warning (#4413) 2020-03-12 20:42:14 +01:00
test_spidermiddleware_output_chain.py Initial removal of twisted.internet.defer.returnValue 2020-04-13 06:12:30 -03:00
test_spidermiddleware_referer.py Fix pycodestyle E2XX (whitespace) (#4468) 2020-04-15 14:11:37 +02:00
test_spidermiddleware_urllength.py Fix W391 Blank line at end of file (#4137) 2019-11-07 17:47:35 +01:00
test_spiderstate.py TST remove temporary files and folders 2017-02-16 17:50:38 +05:00
test_squeues.py Remove object base class (#4430) 2020-03-16 20:12:46 +01:00
test_stats.py Simplify some more imports. 2019-11-14 13:45:39 +05:00
test_toplevel.py Remove more six imports 2019-11-03 01:11:28 -03:00
test_urlparse_monkeypatches.py Remove six.moves occurrences from tests 2019-11-03 00:01:09 -03:00
test_utils_asyncio.py Specify Twisted reactor (TWISTED_REACTOR setting) (#4294) 2020-02-06 22:42:34 +05:00
test_utils_conf.py Add tests for scrapy.utils.conf.feed_complete_default_values_from_settings 2020-03-11 20:57:31 -03:00
test_utils_console.py Add missing blank lines between functions and classes 2019-11-18 17:16:09 +01:00
test_utils_curl.py Remove elluding six occurrences 2019-11-03 12:26:38 -03:00
test_utils_datatypes.py Scan callbacks/errbacks for return statements with values different than None 2019-12-16 11:30:40 -03:00
test_utils_defer.py fix E22X flake8 2020-02-21 08:39:14 +01:00
test_utils_deprecate.py Remove object base class (#4430) 2020-03-16 20:12:46 +01:00
test_utils_gz.py Modifying existing gzip read failure recovery mechanism to patch read for broken archives 2016-08-11 18:21:42 +05:30
test_utils_http.py Fix E502: backslash is redundant between brackets (#4238) 2019-12-17 13:53:15 +01:00
test_utils_httpobj.py Add missing blank lines between functions and classes 2019-11-18 17:16:09 +01:00
test_utils_iterators.py Fix pycodestyle E2XX (whitespace) (#4468) 2020-04-15 14:11:37 +02:00
test_utils_log.py fix E22X flake8 2020-02-21 08:39:14 +01:00
test_utils_project.py Add tests for envvar setting warnings 2020-02-27 16:31:43 +01:00
test_utils_python.py Remove object base class (#4430) 2020-03-16 20:12:46 +01:00
test_utils_reqser.py serialize requests with callback references as spider attribute 2020-04-15 20:03:58 -03:00
test_utils_request.py fix E30X flake8 (#4355) 2020-02-21 06:05:31 +01:00
test_utils_response.py Remove six.moves occurrences from tests 2019-11-03 00:01:09 -03:00
test_utils_serialize.py Add set serialization to ScrapyJSONEncoder 2016-07-22 17:20:03 -04:00
test_utils_signal.py fix E22X flake8 2020-02-21 08:39:14 +01:00
test_utils_sitemap.py Add missing blank lines between functions and classes 2019-11-18 17:16:09 +01:00
test_utils_spider.py Keep 2 spaces between code and inline comments (#4195) 2019-12-13 14:20:48 +01:00
test_utils_template.py fix E30X flake8 (#4355) 2020-02-21 06:05:31 +01:00
test_utils_trackref.py Simplify some more imports. 2019-11-14 13:45:39 +05:00
test_utils_url.py Fix pycodestyle E2XX (whitespace) (#4468) 2020-04-15 14:11:37 +02:00
test_webclient.py Fix pycodestyle E2XX (whitespace) (#4468) 2020-04-15 14:11:37 +02:00