scrapy/tests
Vostretsov Nikita b364d27247 [MRG+1] Automatic port selection for servicies in unit tests (#3210)
* ability to pass port as a parameter

* try to find free ports

* use environment variables to pass mock server address

* get mock server address from environment variables

* ability to select ports for proxy in runtime

* use common method for URLs from mock server

* https support

* get mock server address

* get mock address

* replace hand-written mechanism by kernel-based one

* use ephemeral ports in mockserver

* strip EOL from addresses

* use ephemeral port in proxy

* no need to restore environment as it is restored in tearDown

* decode bytes

* use mockserver address as a variable

* ability to pass address as variable

* per test-case mockserver

* use base class

* remove obsolete environment manipulation

* return usage of proxy for http cases

* common method for broking proxy auth credentials

* python version-independent url methods
2018-05-23 21:25:50 +03:00
..
keys revert wrong changes 2018-03-13 13:05:37 +08:00
mocks
…
sample_data
…
test_cmdline Update deprecated test aliases 2017-08-09 12:52:10 +02:00
test_settings
…
test_spiderloader
…
test_utils_misc Update deprecated test aliases 2017-08-09 12:52:10 +02:00
__init__.py Use https links wherever possible 2017-10-28 16:24:40 +05:30
constraints.txt blacklist twisted version with regression in constraints file 2018-05-17 08:53:42 +00:00
mockserver.py [MRG+1] Automatic port selection for servicies in unit tests (#3210) 2018-05-23 21:25:50 +03:00
pipelines.py
…
py3-ignores.txt
…
requirements-py3.txt
…
requirements.txt
…
spiders.py [MRG+1] Automatic port selection for servicies in unit tests (#3210) 2018-05-23 21:25:50 +03:00
test_closespider.py [MRG+1] Automatic port selection for servicies in unit tests (#3210) 2018-05-23 21:25:50 +03:00
test_command_fetch.py
…
test_command_parse.py removed commented out code, wrapped line to pep-8 and removed backlashes 2017-11-11 18:30:01 -05:00
test_command_shell.py
…
test_command_version.py Fix test 2017-09-25 12:49:27 +02:00
test_commands.py
…
test_contracts.py
…
test_crawl.py [MRG+1] Automatic port selection for servicies in unit tests (#3210) 2018-05-23 21:25:50 +03:00
test_crawler.py
…
test_dependencies.py
…
test_downloader_handlers.py [MRG+1] Automatic port selection for servicies in unit tests (#3210) 2018-05-23 21:25:50 +03:00
test_downloadermiddleware.py
…
test_downloadermiddleware_ajaxcrawlable.py
…
test_downloadermiddleware_cookies.py Update deprecated test aliases 2017-08-09 12:52:10 +02:00
test_downloadermiddleware_decompression.py
…
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
…
test_downloadermiddleware_httpcompression.py Update deprecated test aliases 2017-08-09 12:52:10 +02:00
test_downloadermiddleware_httpproxy.py Fix typos in tests 2017-10-01 12:24:56 -03:00
test_downloadermiddleware_redirect.py Update deprecated test aliases 2017-08-09 12:52:10 +02:00
test_downloadermiddleware_retry.py
…
test_downloadermiddleware_robotstxt.py
…
test_downloadermiddleware_stats.py
…
test_downloadermiddleware_useragent.py Update deprecated test aliases 2017-08-09 12:52:10 +02:00
test_dupefilters.py
…
test_engine.py
…
test_exporters.py
…
test_feedexport.py [MRG+1] Automatic port selection for servicies in unit tests (#3210) 2018-05-23 21:25:50 +03:00
test_http_cookies.py Update asserts to use more generic ones 2017-08-09 12:52:10 +02:00
test_http_headers.py
…
test_http_request.py Corrected Test 2018-03-03 20:07:50 +05:30
test_http_response.py [MRG+1] Fix part of issue #3128 - None should not be a valid type for 'url' in Response.follow (#3131) 2018-02-22 03:37:26 +05:00
test_item.py Force Travis CI to test again 2017-08-04 14:35:43 +02:00
test_link.py
…
test_linkextractors.py
…
test_linkextractors_deprecated.py
…
test_loader.py Update asserts to use more generic ones 2017-08-09 12:52:10 +02:00
test_logformatter.py
…
test_mail.py
…
test_middleware.py
…
test_pipeline_crawl.py [MRG+1] Automatic port selection for servicies in unit tests (#3210) 2018-05-23 21:25:50 +03:00
test_pipeline_files.py added test for gcs policy 2018-04-03 18:06:34 +09:00
test_pipeline_images.py Update deprecated test aliases 2017-08-09 12:52:10 +02:00
test_pipeline_media.py
…
test_proxy_connect.py [MRG+1] Automatic port selection for servicies in unit tests (#3210) 2018-05-23 21:25:50 +03:00
test_pydispatch_deprecated.py
…
test_responsetypes.py
…
test_selector.py Update deprecated test aliases 2017-08-09 12:52:10 +02:00
test_selector_csstranslator.py
…
test_spider.py Merge pull request #2854 from jenya/2853-sitemap-follow-alternate-fix 2017-08-21 19:15:03 +05:00
test_spidermiddleware_depth.py Update deprecated test aliases 2017-08-09 12:52:10 +02: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 checking for subclass of URLWarning instead of checking error message text when URL in allowed_domains 2017-11-26 20:07:04 +01:00
test_spidermiddleware_referer.py Update deprecated test aliases 2017-08-09 12:52:10 +02:00
test_spidermiddleware_urllength.py Update deprecated test aliases 2017-08-09 12:52:10 +02:00
test_spiderstate.py
…
test_squeues.py Update test for unpickable objects 2018-02-08 15:03:57 -03:00
test_stats.py
…
test_toplevel.py
…
test_urlparse_monkeypatches.py Update deprecated test aliases 2017-08-09 12:52:10 +02:00
test_utils_conf.py
…
test_utils_console.py
…
test_utils_datatypes.py Update deprecated test aliases 2017-08-09 12:52:10 +02:00
test_utils_defer.py Update deprecated test aliases 2017-08-09 12:52:10 +02:00
test_utils_deprecate.py
…
test_utils_gz.py
…
test_utils_http.py
…
test_utils_httpobj.py
…
test_utils_iterators.py Update deprecated test aliases 2017-08-09 12:52:10 +02:00
test_utils_log.py
…
test_utils_project.py Update deprecated test aliases 2017-08-09 12:52:10 +02:00
test_utils_python.py Fix get_func_args test for pypy3 2017-12-25 14:48:10 +03:00
test_utils_reqser.py
…
test_utils_request.py
…
test_utils_response.py
…
test_utils_serialize.py
…
test_utils_signal.py Update asserts to use more generic ones 2017-08-09 12:52:10 +02:00
test_utils_sitemap.py
…
test_utils_spider.py
…
test_utils_template.py
…
test_utils_trackref.py
…
test_utils_url.py
…
test_webclient.py Update asserts to use more generic ones 2017-08-09 12:52:10 +02:00