Eugenio Lacuesta
94d7ad76cb
Fix pycodestyle E2XX (whitespace) ( #4468 )
2020-04-15 14:11:37 +02:00
nyov
915e363db5
Remove a 'twisted.test.proto_helpers' deprecation warning
2020-03-07 18:03:25 +00:00
Marc Hernandez Cabot
6fb85951ce
fix E22X flake8
2020-02-21 08:39:14 +01:00
Marc Hernández
91bbc70bc1
fix E30X flake8 ( #4355 )
2020-02-21 06:05:31 +01:00
Eugenio Lacuesta
d72444b9c8
Remove more six imports
2019-11-03 01:11:28 -03:00
Eugenio Lacuesta
eaeaa40b99
Remove six.PY* checks
2019-11-03 01:08:08 -03:00
Eugenio Lacuesta
1aba513693
Remove six.iter* occurrences
2019-11-03 00:26:44 -03:00
Andrey Rakhmatullin
aaa5229e5d
Fixes and improvements for DOWNLOADER_CLIENT_TLS_CIPHERS.
2019-08-13 16:56:26 +05:00
Andrey Rakhmatullin
9a8edf2bf1
Tests for setting SSL ciphers.
2019-08-13 16:53:19 +05:00
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
Mikhail Korobov
78cb46a079
TST fix a weird OS X testing issue
...
pytest intercepts temp file creation to provide readable file/folder
names; path is built from method name; in case of conflicts
pytests uses increasing numbers, but it seems it doesn’t account
for case-insensitive (but case preserving) OS X filesystem. There
are methods named test_encoding, pytest thinks test_Encoding is
different and fails to create a test folder
2017-02-16 18:22:04 +05:00
Mikhail Korobov
b9928558b2
TST remove temporary files and folders
2017-02-16 17:50:38 +05:00
Konstantin Lopuhin
4946434582
revert most changes to this test, and clarify - it is valid only on py2, because urls are strictly unicode on py3
2016-01-18 15:23:01 +03:00
Konstantin Lopuhin
a2efd389b0
clarify: rename r_transform to response_transform
2016-01-18 15:09:54 +03:00
Konstantin Lopuhin
673df5e416
add webclient test - check that non-standart body encoding matches Content-Encoding header
2016-01-18 11:44:49 +03:00
Konstantin Lopuhin
5c2241ccc7
py3: fix webclient tests after making ScrapyHTTPClientFactory use bytes as in twisted
2016-01-14 15:30:28 +03:00
Konstantin Lopuhin
0178356178
py3 fix testRedirect: url is bytes here
2016-01-14 13:46:46 +03:00
Konstantin Lopuhin
30c7b4e4cc
py3 compat in test_timeoutTriggering cleanup
2016-01-14 13:44:14 +03:00
Konstantin Lopuhin
88f55312af
py3 fix in testFactoryInfo - factory attirbutes are bytes in twisted
2016-01-14 13:43:37 +03:00
Konstantin Lopuhin
b5f9bc8499
py3 test fixes in test_webclient - expect bytes as page body
2016-01-14 13:04:45 +03:00
Konstantin Lopuhin
ae4aa2c3b2
py3 test fix: putChild expects bytes as path
2016-01-14 13:04:10 +03:00
Konstantin Lopuhin
325b6af6c2
fix ScrapyHTTPPageGetterTests for py3 - we expect bytes here
2016-01-14 12:29:59 +03:00
Konstantin Lopuhin
945674eb8f
pass test_externalUnicodeInterference - the logic for py3 is clearly inverse of what was expected in this test, as scrapy Request url must be unicode
2016-01-14 12:25:54 +03:00
Konstantin Lopuhin
1d5ab67183
pass test_getPageHead on py3
2016-01-14 12:04:26 +03:00
Konstantin Lopuhin
9f2be23a39
webclient tests, py3: fix setUp, pass test_getPage
2016-01-14 11:42:23 +03:00
drack3800
1b6d5a011a
Added webclient test for checking Content-Length header in response for POST request with no given body
2015-03-21 04:02:51 +03:00
Daniel Graña
242c08553f
move tests under root dir
2014-07-30 19:45:08 -03:00