scrapy/tests
willbeaufoy cf9be5344a
Prevent create_instance() returning None (#4532)
Currently create_instance() can return None if an extension is
incorrectly implemented, but the extension will still show up as
enabled in the logs. This can cause confusion, as in the linked bug.

This change prevents this occurring by throwing an error if
create_instance() will return None.
2020-05-11 20:35:25 +02:00
..
CrawlerProcess Specify Twisted reactor (TWISTED_REACTOR setting) (#4294) 2020-02-06 22:42:34 +05:00
CrawlerRunner Tests: Move code inside __main__ block 2020-04-16 11:37:37 -03: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 Prevent create_instance() returning None (#4532) 2020-05-11 20:35:25 +02: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 unnecessary parentheses in class definition 2020-02-04 13:30:13 -03: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 Flake8: remove E127 in tests (continuation line over-indented for visual indent) 2020-05-06 09:49:10 -03:00
test_closespider.py Flake8: remove E127 in tests (continuation line over-indented for visual indent) 2020-05-06 09:49:10 -03: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 Merge branch 'master' into response_ip_address 2020-04-16 11:32:37 -03:00
test_crawler.py IPv6 test: check for the absence of DNSLookupError 2020-04-28 17:50:06 +02:00
test_dependencies.py fix E30X flake8 (#4355) 2020-02-21 06:05:31 +01:00
test_downloader_handlers.py Merge remote-tracking branch 'upstream/master' into bytes_received_signal 2020-05-06 22:41:16 -03: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 Flake8: Remove E126 2020-05-06 16:10:21 -03:00
test_downloadermiddleware_decompression.py Flake8: remove E127 in tests (continuation line over-indented for visual indent) 2020-05-06 09:49:10 -03: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 Flake8: remove E123 (Closing bracket does not match indentation of opening bracket's line) 2020-05-06 12:26:04 -03:00
test_downloadermiddleware_httpproxy.py Remove unused imports 2019-11-21 14:21:17 +01:00
test_downloadermiddleware_redirect.py Remove Python 2 encoding header from files (#4553) 2020-05-08 15:45:19 +02:00
test_downloadermiddleware_retry.py Flake8: Remove E126 2020-05-06 16:10:21 -03:00
test_downloadermiddleware_robotstxt.py Remove Python 2 encoding header from files (#4553) 2020-05-08 15:45:19 +02: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 Flake8: Remove E124 2020-05-06 15:40:37 -03:00
test_engine.py Simplify bytes_received signal 2020-04-06 09:26:13 -03:00
test_exporters.py Flake8: Remove E124 2020-05-06 15:40:37 -03: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 Flake8: Remove E126 2020-05-06 16:10:21 -03:00
test_http_response.py Deprecate Response.body_as_unicode() (#4555) 2020-05-11 20:20:31 +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 Remove lambdas in link extractor 2020-05-08 15:24:37 -03: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 Remove Python 2 encoding header from files (#4553) 2020-05-08 15:45:19 +02: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 Merge pull request #4471 from elacuesta/fix-pycodestyle-e731 2020-04-16 23:17:31 +05: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 Remove Python 2 encoding header from files (#4553) 2020-05-08 15:45:19 +02:00
test_robotstxt_interface.py fix W291, W292, W293 (whitespaces) 2019-12-18 16:33:46 +01:00
test_scheduler.py Flake8: remove E123 (Closing bracket does not match indentation of opening bracket's line) 2020-05-06 12:26:04 -03:00
test_selector.py Flake8: remove E127 in tests (continuation line over-indented for visual indent) 2020-05-06 09:49:10 -03: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 Flake8: remove E121 2020-05-08 16:43:47 -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 Flake8: remove E125 (Continuation line with same indent as next logical line) 2020-05-06 10:26:52 -03: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 Fix pickle test for pypy 2020-05-06 20:30:22 -03: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 Python 2 encoding header from files (#4553) 2020-05-08 15:45:19 +02: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 Flake8: remove W504 code (#4525) 2020-05-06 00:14:48 +02: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 Remove Python 2 encoding header from files (#4553) 2020-05-08 15:45:19 +02:00
test_utils_log.py Remove Python 2 encoding header from files (#4553) 2020-05-08 15:45:19 +02:00
test_utils_project.py Add tests for envvar setting warnings 2020-02-27 16:31:43 +01:00
test_utils_python.py Fix E731: do not assign a lambda expression 2020-04-04 21:54:55 -03:00
test_utils_reqser.py trying to improve test coverage 2020-04-17 10:34:34 -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 E731: do not assign a lambda expression 2020-04-04 21:54:55 -03:00
test_utils_sitemap.py Flake8: Remove E124 2020-05-06 15:40:37 -03: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 Remove Python 2 encoding header from files (#4553) 2020-05-08 15:45:19 +02:00
test_webclient.py Flake8: Remove E126 2020-05-06 16:10:21 -03:00