Eugenio Lacuesta
5e9a99e6a1
Reponse.protocol as string
2020-11-11 11:15:29 -03:00
Eugenio Lacuesta
5b6b56240c
Test Response.protocol attribute
2020-11-11 01:08:37 -03:00
Eugenio Lacuesta
c20b34269f
Remove unnecessary pytest-azurepipelines package ( #4876 )
2020-11-10 15:35:09 -03:00
Mikhail Korobov
91a8451c98
Merge pull request #4874 from stummjr/fix-missing-fstring-prefix-genspider
...
Fix incorrect output on the genspider command
2020-11-10 17:23:28 +05:00
Eugenio Lacuesta
b20cfef1e5
Remove unnecessary line from test
2020-11-09 13:58:52 -03:00
Eugenio Lacuesta
7e98a76ac4
Use deferred_from_coro in asyncio test
2020-11-09 12:17:15 -03:00
Valdir Stumm Junior
a2c4a7f920
Add missing f-string prefix to genspider output
2020-11-08 20:14:59 -03:00
Adrián Chaves
4b28da4333
Fix syntax error
2020-11-06 16:46:22 +01:00
Adrián Chaves
f3064254ce
Merge branch 'patch-2' of github.com:GeorgeA92/scrapy into patch-2
2020-11-06 16:42:58 +01:00
Adrián Chaves
ee98771fa7
Remove unused variable
2020-11-06 16:42:32 +01:00
Adrián Chaves
1941f607ca
Skip 2 additional tests with older Twisted versions
2020-11-06 16:25:56 +01:00
Eugenio Lacuesta
3095d39740
Test: disable asyncio reactor on Windows for Py>=3.8
2020-11-06 12:16:18 -03:00
Adrián Chaves
5d2a9cf5b1
Merge branch 'master' into patch-2
2020-11-06 14:17:54 +01:00
Adrián Chaves
a3e53027ec
Test HttpCompressionMiddleware subclasses with custom, parameterless __init__
2020-11-06 14:16:26 +01:00
Adrián Chaves
fea5a11899
Also skip test_asyncdef_asyncio on old Twisted versions
2020-11-06 13:00:42 +01:00
Adrián Chaves
ea851b910e
Clean up Twisted version check
2020-11-06 13:00:31 +01:00
Eugenio Lacuesta
5b5478ae9d
Call asyncio.get_event_loop when installing the asyncio reactor
2020-11-05 14:01:34 -03:00
Adrián Chaves
906626cf0b
Skip MiddlewareUsingCoro::test_asyncdef on asyncio and old Twisted
2020-11-04 21:50:12 +01:00
Adrián Chaves
8e7b756727
Solve Flake8-reported issues
2020-11-04 21:26:55 +01:00
Adrián Chaves
7327145bf3
Remove mitmproxy from pinned environments
2020-10-30 21:34:15 +01:00
Georgiy Zatserklianyi
a5872a0fad
Fix output file overwrite with -O (FeedExporter updated) ( #4859 )
2020-10-30 19:36:39 +01:00
Eugenio Lacuesta
585e4a8aee
Replace local server address
2020-10-15 09:07:34 -03:00
GeorgeA92
872b2e4ce4
testcase added for COMPRESSION_ENABLED setting
2020-10-13 18:41:58 +03:00
GeorgeA92
d32d0d2739
testcase added for HttpCompressionMiddleware with no stats
2020-10-13 18:36:41 +03:00
Eugenio Lacuesta
868826b346
CachingHostnameResolver tests
2020-10-09 10:38:07 -03:00
Andrey Rahmatullin
9f8c3938cc
Merge pull request #4823 from elacuesta/cookies-revert-header
...
Do not process cookies from headers
2020-10-08 20:20:32 +05:00
Andrey Rahmatullin
45c06cfd80
Merge pull request #4831 from starrify/downloadermw-support-zstd
...
Adding support for zstd in HttpCompressionMiddleware
2020-10-08 14:08:18 +05:00
Adrián Chaves
269fe35d6d
Merge branch 'master' into http2
2020-10-06 21:05:10 +02:00
P. Chen
156bb0a1d4
Fixing the minor typo on test file path in tests/test_downloadermiddleware_httpcompression.py
2020-10-06 19:53:40 +01:00
Adrián Chaves
e40788153c
Do not consider about: URLs invalid
2020-10-06 19:13:29 +02:00
GeorgeA92
6050604f62
httocompression/response_bytes tests added
2020-10-06 18:59:57 +03:00
Andrey Rahmatullin
b1255b016a
Merge pull request #4746 from Gallaecio/fix_iternodes
...
Fix iternodes
2020-10-06 20:14:04 +05:00
Andrey Rahmatullin
1aeda66435
Merge pull request #4804 from Gallaecio/mock-s3
...
Use mocking for S3 tests that currently need server credentials
2020-10-06 18:23:01 +05:00
P. Chen
6032a9a310
Minor adjustment to the test case in tests/test_downloadermiddleware_httpcompression.py
2020-10-05 23:55:48 +01:00
P. Chen
50e1f35d1f
Adding test cases for the zstd content encoding
2020-10-05 23:43:12 +01:00
Eugenio Lacuesta
797a6690c0
Tests: use classes instead of paths in settings ( #4817 )
2020-10-01 23:11:11 -03:00
Mikhail Korobov
4f27c5f82b
Merge pull request #4768 from maranqz/feature/4606-exporter-from-FEEDS
...
Pass info from FEEDS to ItemExporter
2020-10-02 00:10:05 +05:00
Mikhail Korobov
f173af6b9d
Merge pull request #4778 from drs-11/unparseable-no-proxy-fix
...
Check for unparseable no_proxy values
2020-10-01 23:57:00 +05:00
Akshay Sharma
159e2b2e2f
allowing to run .pyw files ( #4646 )
...
* allow .pyw in scrapy/commands/runspider.py
* aesthetics
* added tests for '.pyw'
* created class for testing .pyw files
* name=None parameter in get_log
* small fix
* .pyw tests for non-windows
* used @skipIf for tests
* two more tests skipped
2020-10-01 23:53:08 +05:00
Eugenio Lacuesta
744f352d09
Do not process cookies from headers
2020-10-01 14:52:23 -03:00
Eugenio Lacuesta
894b509d7a
Crawl rule: remove deprecated code
...
Remove the compatibility layer that handles 'process_request'
methods that do not receive a 'response' parameter
2020-09-29 23:37:28 -03:00
Adrián Chaves
6ef7c44061
Fix timezone test issue
2020-09-22 12:45:21 +02:00
GeorgeA92
c22e810658
httocompression tests added
2020-09-22 07:47:37 +03:00
Adrián Chaves
8f46e84519
Fix style issues
2020-09-21 23:28:16 +02:00
Adrián Chaves
c3b740f078
Use mocking for tests/test_pipeline_files.py::TestS3FilesStore::test_persist
2020-09-21 23:25:37 +02:00
Adrián Chaves
35726da434
tests/test_feedexport.py: remove unused import
2020-09-21 22:55:25 +02:00
Adrián Chaves
17e135377a
Use mocking for tests/test_feedexport.py::BatchDeliveriesTest::test_s3_export
2020-09-21 22:54:39 +02:00
Adrián Chaves
56f05fb164
Use mocking for tests/test_feedexport.py::S3FeedStorageTest::test_store
2020-09-21 22:01:09 +02:00
Adrián Chaves
008cf1c75e
Remove a test that has never been executed in Python 3
2020-09-21 20:45:21 +02:00
Andrey Rahmatullin
5e997587d9
Remove dead boto2 code, deprecate is_botocore() ( #4776 )
2020-09-20 15:06:46 +02:00
Eugenio Lacuesta
6e8d20a07a
HTTP/2: add some type hints ( #4785 )
2020-09-16 09:57:07 +02:00
drs-11
82ba7c8b52
created separate test for invalid no-proxy values
2020-09-10 20:56:39 +05:30
drs-11
959222df7e
check for unparseable no_proxy values
2020-09-05 21:32:05 +05:30
Andrey Rahmatullin
c1cc3f2f42
Merge pull request #4761 from Gallaecio/on-the-fly-certificates
...
Generate localhost keys for tests on the fly
2020-09-02 13:37:44 +05:00
Adrián Chaves
9731d91f34
Merge branch 'master' into fix_iternodes
2020-09-01 12:38:37 +02:00
Eugenio Lacuesta
307e35c664
Improve check for invalid cookie in CookiesMiddleware ( #4772 )
2020-09-01 11:04:00 +02:00
Adrián Chaves
8a3ba34a75
Merge remote-tracking branch 'upstream/master' into http2
2020-08-31 16:43:32 +02:00
Aditya
eff33a2e79
fix(h2): Mockserver test uses H2DownloadHandler
2020-08-30 23:55:17 +05:30
maranqz
71d2c2f1a3
improve view of dict
2020-08-30 12:43:44 +03:00
maranqz
fc3c66ce95
fix tests:
...
* FeedExportConfigTestCase.test_feed_complete_default_values_from_settings_empty
* FeedExportConfigTestCase.test_feed_complete_default_values_from_settings_non_empty
2020-08-30 11:44:48 +03:00
maranqz
a8e895e684
kwargs for Item exporters classes
...
test
docs
2020-08-30 10:57:22 +03:00
Mikhail Korobov
be655b855d
Merge pull request #4765 from scrapy/simplify-test_crawl
...
Simplify tests/test_crawl
2020-08-29 13:31:20 +05:00
Andrey Rakhmatullin
8123c42737
Simplify running spiders in CrawlSpiderTestCase.
2020-08-29 12:01:58 +05:00
Ammar Najjar
ffdf6fe100
use f-strings for the newly merged code from master
...
Issue: #4324
2020-08-29 07:21:48 +02:00
Ammar Najjar
defeaacbc2
Merge branch 'master' into 4307-use-f-strings
...
Conflicts resolved:
- delete tests/py36/_test_crawl.py
2020-08-29 07:12:44 +02:00
Mikhail Korobov
7e6476ff0a
Merge pull request #4764 from scrapy/test_crawl-move-py36
...
Merge back tests/py36/_test_crawl.py.
2020-08-29 00:12:53 +05:00
Andrey Rahmatullin
59a0157ef1
Merge pull request #4722 from Gallaecio/umask
...
Do not let umask affect the permissions of startproject-generated files
2020-08-28 18:41:02 +05:00
Andrey Rakhmatullin
de640f41ec
Merge back tests/py36/_test_crawl.py.
2020-08-28 18:27:36 +05:00
Ammar Najjar
0e57918231
test(Slot): cover __repr__
...
Issue: #4324
2020-08-28 13:58:32 +02:00
Mikhail Korobov
64905e3397
Merge pull request #4691 from elacuesta/typing-spider-attributes
...
Typing: annotate a few Spider attributes
2020-08-28 00:03:40 +05:00
Adrián Chaves
195f738bba
Update Python version references after dropping support for 3.5 ( #4742 )
...
* Update Python version references after dropping support for 3.5
* Remove outdated test
* Undo change affecting collect_asyncgen
* Undo change to be handled by #4743
* Remove unused import
* Remove unused import
* Update tests/requirements-py3.txt
Co-authored-by: Mikhail Korobov <kmike84@gmail.com>
Co-authored-by: Mikhail Korobov <kmike84@gmail.com>
2020-08-27 15:43:43 +05:00
Adrián Chaves
dd378b4bb1
Generate localhost keys for tests on the fly
2020-08-27 11:33:18 +02:00
Mikhail Korobov
a6b67cf4a1
Merge pull request #4755 from maranqz/csv-item-exporter-errors
...
Add errors parameter for CsvItemExporter with tests
2020-08-27 12:51:53 +05:00
Ammar Najjar
5ab1a318e8
test: list appears in ValueError Exception message
...
Issue #4324
2020-08-26 15:11:46 +02:00
Eugenio Lacuesta
a8114d3731
Typing: annotate a few Spider attributes
2020-08-26 09:00:36 -03:00
Ammar Najjar
7597193dbe
Merge branch 'master' into 4307-use-f-strings
...
Resolve Conflicts:
tests/test_middleware.py
2020-08-26 13:46:46 +02:00
nyov
cf50561b86
Allow passing classes directly in Settings ( #3873 )
...
Co-authored-by: Adrián Chaves <adrian@chaves.io>
2020-08-26 13:08:14 +02:00
Ammar Najjar
58ca8bbf6d
Use f-strings ( #4307 )
2020-08-26 07:11:05 +02:00
Mikhail Korobov
0ccaf89a6f
Merge pull request #4756 from ivanprado/master
...
Support for delegated methods as callbacks
2020-08-26 00:10:43 +05:00
Adrián Chaves
2f28cee3ce
Add a test to cover searching for a missing node name
2020-08-25 17:49:17 +02:00
Adrián Chaves
6eb1fc4ab5
Merge remote-tracking branch 'upstream/master' into fix_iternodes
2020-08-25 17:01:54 +02:00
Andrey Rahmatullin
067125c303
Merge pull request #4752 from drs-11/master
...
DOWNLOAD_MAXSIZE logger level changed from Error to Warning
2020-08-25 18:35:50 +05:00
Adrián Chaves
39affea93c
Fix style issues
2020-08-25 13:57:48 +02:00
maranqz
a2d6fa5adc
Add errors parameter for CsvItemExporter with tests
2020-08-25 13:34:43 +03:00
Iván de Prado
3e726b9df7
Support for delegated methods as callbacks
...
It can be useful to structure the spiders code around some helper classes.
2020-08-25 11:31:20 +01:00
Andrey Rahmatullin
64e0ea4ee5
Merge pull request #4735 from wRAR/ciphers-tests
...
Re-enable TLS 1.2 in cipher tests.
2020-08-25 11:48:31 +05:00
WinterComes
2d8ec9d44f
Change DOWNLOAD_MAXSIZE logger level from Error to Warning
2020-08-24 20:37:40 +05:30
Aditya
26d344b762
Merge branch 'http2' of https://github.com/scrapy/scrapy into h2-client-protocol
2020-08-24 14:58:23 +05:30
Eugenio Lacuesta
f1250177dc
Remove Python 3.5 from CI ( #4743 )
2020-08-22 09:33:35 +02:00
Adrián Chaves
e90be0d8a5
Mark the new test as xfail for xmliter_lxml
2020-08-21 14:09:52 +02:00
Adrián Chaves
d711eca4d9
Merge remote-tracking branch 'upstream/master' into fix_iternodes
2020-08-21 13:52:52 +02:00
Grisha Temchenko
d68aab992e
Smarter generator check for combined return/yield statements ( #4721 )
2020-08-20 10:22:07 -03:00
sakshamb2113
42383cc267
Add a setting to customize the asyncio event loop ( #4414 )
2020-08-19 09:18:14 +02:00
Aditya
a87ab71d10
refactor(http2): metadata for Stream
...
- Add Note about HTTP/2 Cleartext not supported in settings.rst
2020-08-18 05:52:40 +05:30
Andrey Rakhmatullin
d9e69bfb51
Re-enable TLS 1.2 in cipher tests.
2020-08-17 19:46:24 +05:00
Adrián Chaves
e70975f0bb
Allow overwriting feeds ( #4512 )
...
Co-authored-by: Yuval Hager <yhager@yhager.com>
2020-08-17 15:10:08 +02:00
Mikhail Korobov
282a6d4fc1
Merge pull request #4727 from wRAR/mitmproxy-ca
...
Use a longer key in mitmproxy-ca.pem.
2020-08-17 14:06:58 +05:00
Mikhail Korobov
61459de476
Merge pull request #4688 from ashellunts/obsolete-s3feednokeys
...
Remove obsolete S3FeedStorage instancing without AWS credentials
2020-08-17 13:58:32 +05:00
Mikhail Korobov
5ac135f036
Merge pull request #4718 from Gallaecio/support-pinned-3.6
...
Upgrade minimum dependencies for Python 3.6 support
2020-08-17 13:54:45 +05:00
Ajay Mittur
a8e08d51cd
Check if file is already present on running `scrapy genspider` and terminate if so ( #4623 )
2020-08-17 10:45:52 +02:00