Luiz Menezes
3009cbbbe9
Skip requests test instead of failing for python >= 3.6
2018-05-16 12:39:44 -03:00
Hugo
ead48b1907
xfail for test_post_chunked_binary_secure on CPython 3.5
2018-01-15 15:05:53 +02:00
Hugo
87666ba2e4
Multiple context managers supported in 2.7+
2018-01-15 09:54:11 +02:00
Thomas Grainger
dc2dc306d5
pytest-httpbin doesn't support chunked requests on Python 3.6
2017-04-04 11:30:16 +01:00
Kevin McCarthy
1fbd65a702
add test from @mbachry
2016-10-02 10:24:38 -10:00
Kevin McCarthy
4e36997e1a
Use pytest-httpbin
...
This will help the test flakiness and speed up test runs.
2016-05-01 13:50:04 -10:00
Jayson Reis
632af2e41a
Fix/ignore some flake errors
2016-01-20 12:28:46 +01:00
Jayson Reis
7fdfce65ee
Add test to make sure we can post chunked binary data
2016-01-20 12:17:28 +01:00
John Vandenberg
dc9cd4229b
Fix pyflakes and pep8 errors
...
Use extra asserts to use previously unused variables in tests,
such as `cass` and `response`.
Fix only pyflakes errors in docs/conf.py
2015-11-26 08:25:06 +11:00
Maarten van Schaik
a82e8628c2
Requests actually stores redirected request
2015-08-14 12:28:41 +02:00
Jonathan
e742d32a8a
Update test to ensure that filter is correctly applied
2015-06-24 16:27:45 +01:00
Jonathan
ccc1ccaa0e
Allow filtering post params in requests
2015-06-24 16:23:00 +01:00
Ivan Malison
b948ed4857
Fix python3 support for requests file uploads.
2015-03-24 15:41:14 -07:00
Ivan Malison
4b4be7f661
Don't use 2.7+ style ',' separated with.
2015-03-24 14:11:16 -07:00
Ivan Malison
6602a449b1
Add support for posting files through requests. closes #121 . Possibly #134 .
2015-03-24 14:11:16 -07:00
Ivan Malison
39c3b15e02
unused imports.
2015-03-23 17:56:46 -07:00
aisch
8930c97ff7
rm unused imports
2015-03-23 13:56:48 -07:00
Ivan Malison
a2c947dc48
Fix last bit of of #109 .
2014-09-21 05:06:28 -07:00
Ivan Malison
121ed79172
Mark bad test xfail.
2014-09-19 17:10:19 -07:00
Ivan Malison
b6e96020c1
Use {[testenv]deps}, instead of repeating testing requirements. Write another failing test for #109
2014-09-19 14:31:49 -07:00
Ivan Malison
8947f0fc5c
Add failing test for session still being attached to cassette after context is gone.
2014-09-18 17:03:13 -07:00
Ivan Malison
58fcb2b453
Add test that fails because of the fact that a new class is used for each cassette context instead of replacing the cassette on the existing mock connection.
2014-09-18 16:17:48 -07:00
Kevin McCarthy
9a1147196a
getheader() in stubs should be case-insensitive
2014-08-01 16:28:21 -10:00
Marc Abramowitz
5ba4000f77
Add test: test_session_and_connection_close
...
This is a test for issue GH-48.
2013-11-26 12:07:13 -08:00
Kevin McCarthy
89403c255c
Record Multiple Matching Requests
...
This change allows us to record multiple matching requests to
the same URL, and then play them back sequentially.
Closes #40 , #41
2013-11-10 12:17:39 -10:00
Kevin McCarthy
b0a13ba690
Fix Requests so it can gunzip the request body
...
I wasn't emulating the stateful file-object in my response stub,
so urllib3 wasn't decompressing gzipped bodies properly. This
should fix that problem.
Thanks @bryanhelmig for the motivation to dig into this.
2013-11-09 17:51:29 -10:00
Kevin McCarthy
5ce67dc023
Add support for calling httplib.send().
...
This commit changes the whole core internal flow of requests.
Now, requests are actually physically made lazily when a response
is requested. This allows the entire request to be sent at once.
Otherwise, it would be impossible to compare whether requests have
already been recorded, since httplib.send() allows you to effectively
stream requests over HTTP.
2013-09-15 18:43:02 -10:00
Kevin McCarthy
c8299103fb
pep8 fixes
2013-08-23 20:35:43 -10:00
Kevin McCarthy
d00c27e244
refactor tests a bit
2013-08-11 18:23:46 -10:00
Kevin McCarthy
f353a95af5
whats up with travis
2013-08-11 15:05:42 -10:00
Kevin McCarthy
a1229190f5
convert requests tests to pytest
2013-08-11 15:05:42 -10:00
Kevin McCarthy
fb2aa89445
replace cached() with mark_played / play_count
2013-08-11 15:05:40 -10:00
Kevin McCarthy
a8c4061352
fix typo
2013-08-11 15:05:40 -10:00
Kevin McCarthy
cbedb5818a
add unit tests
2013-08-11 15:05:39 -10:00