Cory Benfield
b0657cf163
Guard against users sending unprepared requests.
2013-02-10 06:13:02 +00:00
Cory Benfield
d437c338d0
Add Proxy-Auth header when proxies have credentials.
2013-02-06 18:40:35 +00:00
Ian Cordasco
a95bfd3032
Fix the elapsed test and #1133
2013-01-29 23:50:37 -05:00
Cory Benfield
95084c9ca8
Fix test for Py3.
2013-01-28 18:35:41 +00:00
Cory Benfield
2ac3913733
Make Response objects iterable.
2013-01-28 18:35:41 +00:00
Kenneth Reitz
25545b393b
Merge pull request #1146 from oczkers/master
...
It`s more pep8 now
2013-01-27 19:11:15 -08:00
Chris Lee
318300848f
Use timedelta and change attribute name back to elapsed
2013-01-27 19:07:48 -08:00
Chris Lee
d4aaef1e9a
Time how long each request takes
...
Stored as attribute Response.time_taken
2013-01-27 19:06:50 -08:00
oczkers
40a060cf57
it`s more pep8 now
2013-01-27 02:04:12 +01:00
Ian Cordasco
250896b7f3
Mock the links test.
2013-01-26 11:55:08 -05:00
Kenneth Reitz
b6af86225d
Merge pull request #1140 from ralphbean/cookie-test
...
Test for cookie parameters.
2013-01-25 20:58:35 -08:00
Johnny Goodnow
8d8865aadb
Remove Content-Length from GET/HEAD by default.
...
Now, Content-Length is only auto-added for non-GET/HEAD requests.
2013-01-25 20:50:58 -08:00
Johnny Goodnow
f453892960
Fix python 2.6 unittest compatability issue.
2013-01-24 21:25:14 -08:00
Johnny Goodnow
44b1e7ebea
Remove default Content-Length from GET requests.
...
Fix #1051 .
2013-01-24 21:13:32 -08:00
Ralph Bean
4ce6440795
purported py2.6 support for cookies test.
2013-01-25 00:10:51 -05:00
Ralph Bean
5861254d8f
Test for cookie parameters.
2013-01-24 12:47:55 -05:00
sprt
ab2e7df8a9
Merge branch 'master' of git://github.com/kennethreitz/requests
...
Conflicts:
test_requests.py
2013-01-24 18:36:53 +01:00
Kenneth Reitz
beec48c8f8
Merge pull request #1137 from whit537/unperson_test
...
Remove a test per @kennethreitz in IRC
2013-01-23 17:37:13 -08:00
Chad Whitacre
ef52044c5f
Remove a test per @kennethreitz in IRC
...
The test suite is moving from the httpbin pattern (which hits the
network) to depending on the request.prepare method (which doesn't).
Here's a start ...
2013-01-23 20:32:03 -05:00
Steve Klabnik
ccea28db07
introduce a test for link headers.
2013-01-23 20:31:05 -05:00
Steve Klabnik
0af8ff9405
remove silly assert
2013-01-23 20:03:43 -05:00
sprt
c4ad8afba9
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
requests/sessions.py
2013-01-23 14:42:45 +01:00
Cory Benfield
de32f1774f
Remove test that cannot work on Python3.
2013-01-19 17:14:32 +00:00
Cory Benfield
89c8cbbe0c
Ensure Content-Length is a string.
2013-01-19 12:07:34 +00:00
sprt
a721d590b4
Make hooks work with prepared requests
2013-01-12 21:46:44 +01:00
Kenneth Reitz
6ec1a9ca52
Merge pull request #1091 from vinodc/specify_file_content_type
...
Allow for explicit file content type support
2013-01-09 23:02:47 -08:00
Kenneth Reitz
4a5b5bc86e
test cleanup
2013-01-10 00:40:17 -05:00
Vinod Chandru
fbc366c1a5
Fixing test to ensure it passes with python 3.
2013-01-09 20:10:54 -08:00
Vinod Chandru
20b10aed1b
Allow for third argument in file dict value to support explicit
...
file content type.
2013-01-09 19:29:28 -08:00
David Bonner
7d085b188c
fix POST redirects
...
the redirect handling logic compares then method to upper-case strings,
so make sure the method gets upper-cased as well.
add a test to POST to /status/302 on httpbin, which fails against httpbin.org
right now. i'm submitting a pull request over there to fix that right after
this one. once that's accepted, the new test verifies that the fix works.
2012-12-23 00:51:26 -05:00
Eric Scrivner
916e6fcd64
Add unit-test to reproduce encoding error.
2012-12-17 12:28:08 -08:00
Kenneth Reitz
92209d9ebe
3.3
2012-12-17 08:42:47 -05:00
Kenneth Reitz
480a3821ab
remove chardet
2012-12-17 08:17:19 -05:00
Kenneth Reitz
0569fe44d8
new tests!
2012-12-17 08:09:52 -05:00
Kenneth Reitz
73ed0d01f6
basic tests
2012-12-17 07:39:27 -05:00
Kenneth Reitz
82cce02120
basic test
2012-12-17 07:29:33 -05:00
Kenneth Reitz
0b9a2a1581
move tests over
2012-02-15 02:52:32 -05:00
Kenneth Reitz
2759060559
it's a start
2012-02-15 02:45:21 -05:00
Kenneth Reitz
0d8c08cd22
binary data upload bug test
2012-02-15 02:03:29 -05:00
Kenneth Reitz
c0f066626e
whitespace
2012-02-15 01:42:57 -05:00
Kenneth Reitz
1b6f1b091c
Merge branch '400-header_expand-unicode' of https://github.com/acdha/requests into develop
2012-02-15 01:25:29 -05:00
Matt Giuca
3ae0ff3685
Added test cases for URI cleaning in the query part (Issue #429 ).
2012-02-15 12:00:27 +11:00
Matt Giuca
c0763bb8d5
Changed test case test_path_is_not_double_encoded.
...
Uses the space character instead of ~ as a test (since ~ is unreserved, it
shouldn't really be encoded at all).
2012-02-14 12:49:31 +11:00
Matt Giuca
75bd9d0e94
Added test case testing URI normalisation.
...
Tests that percent-encoded unreserved characters get de-encoded.
2012-02-14 12:20:48 +11:00
Matt Giuca
08bc1198d3
Added test case for Issue #369 .
...
Tests that legal reserved and unreserved characters in the path are not
percent-encoded. Currently fails.
2012-02-14 12:15:32 +11:00
Matt Giuca
329efcae6e
Added test case for quoted and illegal characters in the URL.
...
This is a test case for issue #369 .
It passes in Python 2, but fails in Python 3 (though the test suite doesn't
actually work in Python 3, it can be shown to fail with some modification).
2012-02-14 11:47:14 +11:00
Chris Adams
0a17badb21
header_expand: handle Unicode strings ( closes #400 )
2012-02-13 11:10:05 -05:00
David Kemp (Work)
f478c34671
add failing test for unicode headers (python 2.x only)
2012-01-26 18:45:38 +00:00
David Kemp (Work)
80eafe3b63
fix problem with path being double escaped
2012-01-25 16:21:07 +00:00
Piotr Dobrogost
c430b60e38
Standard tests from RequestsTestSuite run using async api
2012-01-24 21:56:59 +01:00