]> khamidou — GitHub mirrors - vcrpy.git/log
vcrpy.git
12 years agouse six.moves instead of _compat
Kevin McCarthy [Sun, 9 Mar 2014 09:01:49 +0000 (23:01 -1000)]
use six.moves instead of _compat

12 years agopep8 cleanup
Kevin McCarthy [Sun, 9 Mar 2014 08:59:10 +0000 (22:59 -1000)]
pep8 cleanup

12 years agoadd AWS keys to travis
Kevin McCarthy [Sun, 9 Mar 2014 08:14:35 +0000 (22:14 -1000)]
add AWS keys to travis

12 years agoneed the sock for httplib2, don't want sock for requests, can't we all just get along?
Kevin McCarthy [Sun, 9 Mar 2014 07:39:11 +0000 (21:39 -1000)]
need the sock for httplib2, don't want sock for requests, can't we all just get along?

12 years agoexpose sock, pass correct args to connect in stubs. should fix httplib2 in python3
Kevin McCarthy [Sun, 9 Mar 2014 07:27:09 +0000 (21:27 -1000)]
expose sock, pass correct args to connect in stubs.  should fix httplib2 in python3

12 years agofix self.closed in python3, and request must inherit from httprequest for httplib2
Kevin McCarthy [Sun, 9 Mar 2014 07:11:50 +0000 (21:11 -1000)]
fix self.closed in python3, and request must inherit from httprequest for httplib2

12 years agoadd more tox envs
Kevin McCarthy [Sun, 9 Mar 2014 06:58:41 +0000 (20:58 -1000)]
add more tox envs

12 years agolet's add boto as a supported client, and maybe we dont need the empty travis env...
Kevin McCarthy [Sun, 9 Mar 2014 06:21:20 +0000 (20:21 -1000)]
let's add boto as a supported client, and maybe we dont need the empty travis env anymore

12 years agourlencode moved in py3
Kevin McCarthy [Sun, 9 Mar 2014 06:21:04 +0000 (20:21 -1000)]
urlencode moved in py3

12 years agoDon't try to inherit from the real response object
Kevin McCarthy [Sun, 9 Mar 2014 06:16:45 +0000 (20:16 -1000)]
Don't try to inherit from the real response object

12 years agoAdd Python 2.3 support
Åsmund Grammeltvedt [Sun, 2 Feb 2014 20:53:12 +0000 (21:53 +0100)]
Add Python 2.3 support

This commit also adds the 'six' dependency

12 years agoCut down on the number of environments in Travis
Kevin McCarthy [Sun, 9 Feb 2014 20:11:54 +0000 (10:11 -1000)]
Cut down on the number of environments in Travis

12 years agoAdd httplib2 tests to travis
Kevin McCarthy [Sun, 9 Feb 2014 19:47:09 +0000 (09:47 -1000)]
Add httplib2 tests to travis

12 years agorestore tox envs
Kevin McCarthy [Sun, 9 Feb 2014 19:40:24 +0000 (09:40 -1000)]
restore tox envs

12 years agohttplib2 support
Roberto Abdelkader Martínez Pérez [Tue, 4 Feb 2014 12:22:36 +0000 (13:22 +0100)]
httplib2 support

12 years agoadd tests for boto
Kevin McCarthy [Sun, 9 Mar 2014 05:24:11 +0000 (19:24 -1000)]
add tests for boto

12 years agoMajor Refactor of Stubs
Kevin McCarthy [Sun, 9 Mar 2014 05:22:58 +0000 (19:22 -1000)]
Major Refactor of Stubs

So the stubs were getting out of hand, and while trying to add support for the
putrequest and putheader methods, I had an idea for a cleaner way to handle
the stubs using the VCRHTTPConnection more as a proxy object.  So
VCRHTTPConnection and VCRHTTPSConnection no longer inherit from HTTPConnection
and HTTPSConnection.  This allowed me to get rid of quite a bit of
copy-and-pasted stdlib code.

12 years agoMerge pull request #65 from msabramo/patch-1
Kevin McCarthy [Sun, 9 Mar 2014 05:18:14 +0000 (19:18 -1000)]
Merge pull request #65 from msabramo/patch-1

README.md: minor formatting, add links

12 years agoREADME.md: minor formatting, add links
Marc Abramowitz [Mon, 3 Mar 2014 14:26:57 +0000 (06:26 -0800)]
README.md: minor formatting, add links

12 years agoAdd note to README about tox usage
Kevin McCarthy [Sun, 9 Feb 2014 18:48:34 +0000 (08:48 -1000)]
Add note to README about tox usage

12 years agoMerge pull request #61 from msabramo/tox_posargs
Kevin McCarthy [Sun, 9 Feb 2014 18:49:22 +0000 (08:49 -1000)]
Merge pull request #61 from msabramo/tox_posargs

tox.ini: Add {posargs} for passing args to py.test

12 years agoMerge pull request #63 from msabramo/issue_59_save_requests_HTTPSConnection
Kevin McCarthy [Tue, 4 Feb 2014 18:49:28 +0000 (10:49 -0800)]
Merge pull request #63 from msabramo/issue_59_save_requests_HTTPSConnection

patch: Save requests...HTTPSConnection

12 years agopatch: Save requests...HTTPSConnection
Marc Abramowitz [Tue, 4 Feb 2014 18:30:29 +0000 (10:30 -0800)]
patch: Save requests...HTTPSConnection

so that we unpatch back to the correct class in reset().

Closes #59

12 years agotox.ini: Add {posargs} for passing args to py.test
Marc Abramowitz [Tue, 4 Feb 2014 08:25:13 +0000 (00:25 -0800)]
tox.ini: Add {posargs} for passing args to py.test

This allows you to do stuff like:

   tox -e py26requests,py27requests,pypyrequests -- tests/integration/test_requests.py

12 years agoUpdate README.md v0.6.0
Kevin McCarthy [Sat, 11 Jan 2014 19:34:40 +0000 (09:34 -1000)]
Update README.md

12 years agoLoad Old Cassettes
Kevin McCarthy [Sat, 11 Jan 2014 19:26:34 +0000 (09:26 -1000)]
Load Old Cassettes

Add backwards-compatible cassette loading code that can load
the old style header dicts from response cassettes.

12 years agoPEP8 Fixes
Kevin McCarthy [Fri, 20 Dec 2013 05:38:35 +0000 (19:38 -1000)]
PEP8 Fixes

12 years agoLet's have the new exceptions subclass basic exception types
Kevin McCarthy [Fri, 20 Dec 2013 05:34:06 +0000 (19:34 -1000)]
Let's have the new exceptions subclass basic exception types

12 years agoNicer error for can't overwrite existing cassette
Marc Abramowitz [Thu, 19 Dec 2013 21:55:19 +0000 (13:55 -0800)]
Nicer error for can't overwrite existing cassette

Raise CannotOverwriteExistingCassetteException rather than Exception.
Include cassette filename and record mode in error message.

12 years agoNicer error when cassette doesn't contain request
Marc Abramowitz [Thu, 19 Dec 2013 23:41:04 +0000 (15:41 -0800)]
Nicer error when cassette doesn't contain request

Raise UnhandledHTTPRequestError.
Show name of cassette and request.

12 years agoStore Headers as a List
Kevin McCarthy [Sun, 8 Dec 2013 01:50:30 +0000 (15:50 -1000)]
Store Headers as a List

This is a backwards-incompatible change that will store headers
as a list rather than a dictionary.  The reason being that you can
have multiple values for a single header, and concatenating them
together with commas can create an unparseable string (sometimes
the header values can have commas in them)

12 years agoAdd Decorator Support
Kevin McCarthy [Mon, 16 Dec 2013 02:43:11 +0000 (16:43 -1000)]
Add Decorator Support

12 years agoRemoving Pypy tests until travis installs version 2.2.1
Kevin McCarthy [Mon, 16 Dec 2013 02:19:12 +0000 (16:19 -1000)]
Removing Pypy tests until travis installs version 2.2.1

12 years agoVersion bump to 0.5.0
Kevin McCarthy [Mon, 2 Dec 2013 00:41:18 +0000 (14:41 -1000)]
Version bump to 0.5.0

12 years agoformatting fixes
Kevin McCarthy [Mon, 2 Dec 2013 00:38:46 +0000 (14:38 -1000)]
formatting fixes

12 years agoFix API by adding 'responses_of' method
Kevin McCarthy [Mon, 2 Dec 2013 00:26:35 +0000 (14:26 -1000)]
Fix API by adding 'responses_of' method

`responses_of` replaces `response_of`, since each request can have
several matching responses now.

This breaks backwards compatibility if you are using the
response_of method, so a version bump will be required.

12 years agoFix Cryptic 'write-protected' Message
Kevin McCarthy [Sun, 1 Dec 2013 23:46:44 +0000 (13:46 -1000)]
Fix Cryptic 'write-protected' Message

Closes #46

13 years agodel self.sock in VCRConnectionMixin.request
Marc Abramowitz [Tue, 26 Nov 2013 20:12:39 +0000 (12:12 -0800)]
del self.sock in VCRConnectionMixin.request

instead of in connection class constructors.

Fixes GH-48.

13 years agoAdd test: test_session_and_connection_close
Marc Abramowitz [Tue, 26 Nov 2013 20:07:13 +0000 (12:07 -0800)]
Add test: test_session_and_connection_close

This is a test for issue GH-48.

13 years agoVersion Bump to 0.4.0 v0.4.0
Kevin McCarthy [Sun, 10 Nov 2013 22:31:11 +0000 (12:31 -1000)]
Version Bump to 0.4.0

13 years agoRemove Secure File Overwrite Support
Kevin McCarthy [Sun, 10 Nov 2013 22:25:59 +0000 (12:25 -1000)]
Remove Secure File Overwrite Support

Closes #42

13 years agoRecord Multiple Matching Requests
Kevin McCarthy [Sat, 9 Nov 2013 22:49:33 +0000 (12:49 -1000)]
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

13 years agoAdded test: accessing same recource three times in once mode
Veros Kaplan [Wed, 6 Nov 2013 12:33:31 +0000 (13:33 +0100)]
Added test: accessing same recource three times in once mode

13 years agoAdded test: accessing two times same page
Veros Kaplan [Wed, 6 Nov 2013 12:26:46 +0000 (13:26 +0100)]
Added test: accessing two times same page

13 years agoRemove Some stray \t characters
Kevin McCarthy [Sun, 10 Nov 2013 03:40:36 +0000 (17:40 -1000)]
Remove Some stray \t characters

I guess that's what I get for playing around with my vimrc.

Thanks to @bryanhelmig for pointing these out.

13 years agoFix Requests so it can gunzip the request body
Kevin McCarthy [Sun, 10 Nov 2013 03:33:33 +0000 (17:33 -1000)]
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.

13 years agoFix Requests 2, Version Bump to 0.3.5 v0.3.5
Kevin McCarthy [Fri, 25 Oct 2013 07:56:04 +0000 (21:56 -1000)]
Fix Requests 2, Version Bump to 0.3.5

This fixes a compatiblity issue with the new version of requests.
Bumps the release version to 0.3.5, and closes #39.

13 years agobump for version 0.3.4 v0.3.4
Kevin McCarthy [Fri, 25 Oct 2013 05:56:36 +0000 (19:56 -1000)]
bump for version 0.3.4

13 years agoUpdate filesystem.py
smallcode [Tue, 22 Oct 2013 09:41:56 +0000 (17:41 +0800)]
Update filesystem.py

fix WindowsError: [Error 32].
because must close the file before rename the file in window system.

13 years agoFix issue #36 - error message for unregistered matcher was broken
Kevin McCarthy [Mon, 30 Sep 2013 01:56:13 +0000 (15:56 -1000)]
Fix issue #36 - error message for unregistered matcher was broken

13 years agoBump version for bugfix release
Kevin McCarthy [Sun, 22 Sep 2013 02:41:07 +0000 (16:41 -1000)]
Bump version for bugfix release

13 years agoallow match_on to be passed as an argument VCR
Hector Dearman [Sat, 21 Sep 2013 20:47:27 +0000 (21:47 +0100)]
allow match_on to be passed as an argument VCR

13 years agoOnly use the relative path in HTTP requests v0.3.1
Kevin McCarthy [Tue, 17 Sep 2013 23:18:26 +0000 (13:18 -1000)]
Only use the relative path in HTTP requests

This causes a pretty big problem on out-of-spec HTTP servers (like
Flickr). Closes #31

13 years agoUpdate README.md v0.3.0
Kevin McCarthy [Tue, 17 Sep 2013 06:56:16 +0000 (20:56 -1000)]
Update README.md

13 years agoUpdate README.md
Kevin McCarthy [Tue, 17 Sep 2013 06:54:27 +0000 (20:54 -1000)]
Update README.md

13 years agobump development status to Beta
Kevin McCarthy [Tue, 17 Sep 2013 06:52:38 +0000 (20:52 -1000)]
bump development status to Beta

13 years agoAdd support for custom request matchers
Kevin McCarthy [Tue, 17 Sep 2013 06:09:25 +0000 (20:09 -1000)]
Add support for custom request matchers

This commit not only changes the default method of matching requests
(just match on method and URI instead of the entire request + headers)
but also allows the user to add custom matchers.

13 years agoAdd support for configurable record modes
Kevin McCarthy [Mon, 16 Sep 2013 02:44:50 +0000 (16:44 -1000)]
Add support for configurable record modes

This support will let you select one of four different behaviors
for VCR's cassettes.  Closes #23

13 years agoAdd support for calling httplib.send().
Kevin McCarthy [Sun, 15 Sep 2013 20:47:24 +0000 (10:47 -1000)]
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.

13 years agoAdd new subdirectories in setup.py. Closes #26. Bumps version v0.2.1
Kevin McCarthy [Fri, 30 Aug 2013 18:01:30 +0000 (08:01 -1000)]
Add new subdirectories in setup.py. Closes #26. Bumps version

13 years agoUpdate README.md v0.2.0
Kevin McCarthy [Sat, 24 Aug 2013 18:09:51 +0000 (08:09 -1000)]
Update README.md

13 years agoUpdate README.md
Kevin McCarthy [Sat, 24 Aug 2013 07:41:52 +0000 (21:41 -1000)]
Update README.md

13 years agopep8 fixes
Kevin McCarthy [Sat, 24 Aug 2013 05:56:13 +0000 (19:56 -1000)]
pep8 fixes

13 years agoUpdate README and bump version
Kevin McCarthy [Sat, 24 Aug 2013 03:47:08 +0000 (17:47 -1000)]
Update README and bump version

13 years agoFix intermittent test failure due to http happening too fast
Kevin McCarthy [Sat, 24 Aug 2013 03:33:14 +0000 (17:33 -1000)]
Fix intermittent test failure due to http happening too fast

13 years agoDon't save cassette when it hasn't been modified
shu zOMG chen [Thu, 22 Aug 2013 00:27:29 +0000 (14:27 -1000)]
Don't save cassette when it hasn't been modified

13 years agoremove unused cassette in with statement
Kevin McCarthy [Fri, 23 Aug 2013 04:38:25 +0000 (18:38 -1000)]
remove unused cassette in with statement

13 years agoadd tests for registering serializer
Kevin McCarthy [Fri, 23 Aug 2013 04:36:59 +0000 (18:36 -1000)]
add tests for registering serializer

13 years agochange serializer API so it doesn't have to do file stuff
Kevin McCarthy [Fri, 23 Aug 2013 04:26:40 +0000 (18:26 -1000)]
change serializer API so it doesn't have to do file stuff

13 years agoLet's do an instance/module-based API for serializers
Kevin McCarthy [Fri, 23 Aug 2013 03:39:52 +0000 (17:39 -1000)]
Let's do an instance/module-based API for serializers

13 years agoAdded test to confirm whether cStringIO works
shu zOMG chen [Wed, 21 Aug 2013 20:44:30 +0000 (10:44 -1000)]
Added test to confirm whether cStringIO works

13 years agotest cassette library dir
Kevin McCarthy [Tue, 20 Aug 2013 05:47:54 +0000 (19:47 -1000)]
test cassette library dir

13 years agostart adding config tests
Kevin McCarthy [Tue, 20 Aug 2013 05:34:22 +0000 (19:34 -1000)]
start adding config tests

13 years agokeep yaml as default cassette serializer to fix unit tests
Kevin McCarthy [Tue, 20 Aug 2013 05:24:34 +0000 (19:24 -1000)]
keep yaml as default cassette serializer to fix unit tests

13 years agoclarify the readme a bit
Kevin McCarthy [Tue, 20 Aug 2013 05:17:24 +0000 (19:17 -1000)]
clarify the readme a bit

13 years agomake config options actually do stuff
Kevin McCarthy [Tue, 20 Aug 2013 05:12:32 +0000 (19:12 -1000)]
make config options actually do stuff

13 years agoadd note to readme
Kevin McCarthy [Tue, 20 Aug 2013 04:53:29 +0000 (18:53 -1000)]
add note to readme

13 years agoBegin work on implementing configuration interface
Kevin McCarthy [Tue, 20 Aug 2013 04:48:23 +0000 (18:48 -1000)]
Begin work on implementing configuration interface

13 years agodocument configuration stuffs
Kevin McCarthy [Tue, 20 Aug 2013 04:36:40 +0000 (18:36 -1000)]
document configuration stuffs

13 years agoAdding json serializer
shu zOMG chen [Mon, 19 Aug 2013 07:43:14 +0000 (21:43 -1000)]
Adding json serializer

13 years agoremove errant print statements
Kevin McCarthy [Tue, 20 Aug 2013 05:34:38 +0000 (19:34 -1000)]
remove errant print statements

13 years agoremove unused test file
Kevin McCarthy [Tue, 20 Aug 2013 05:26:56 +0000 (19:26 -1000)]
remove unused test file

13 years agoFix Google test Failure
Kevin McCarthy [Sun, 18 Aug 2013 22:04:22 +0000 (12:04 -1000)]
Fix Google test Failure

Let's not use Google to test redirects since it changes depending on your
geographic location.  I changed the test to use httpbin.org, since
a lot of our tests already depend on httpbin.org anyway.

Somedays, I'd like to implement my own local mock HTTP server I
can do asserts against.  The test suite would just start it up,
and the server would record the requests, which I could then
retrieve and compare.

Closes #21

13 years agoupdate readme v0.1.0
Kevin McCarthy [Mon, 12 Aug 2013 05:01:28 +0000 (19:01 -1000)]
update readme

13 years agoupdate readme
Kevin McCarthy [Mon, 12 Aug 2013 04:59:36 +0000 (18:59 -1000)]
update readme

13 years agoupdate readme
Kevin McCarthy [Mon, 12 Aug 2013 04:57:28 +0000 (18:57 -1000)]
update readme

13 years agoupdate readme
Kevin McCarthy [Mon, 12 Aug 2013 04:53:22 +0000 (18:53 -1000)]
update readme

13 years agoupdate readme
Kevin McCarthy [Mon, 12 Aug 2013 04:51:29 +0000 (18:51 -1000)]
update readme

13 years agoupdate README
Kevin McCarthy [Mon, 12 Aug 2013 04:46:03 +0000 (18:46 -1000)]
update README

13 years agoadd the test from the readme
Kevin McCarthy [Mon, 12 Aug 2013 04:42:09 +0000 (18:42 -1000)]
add the test from the readme

13 years agopersist on _vcr_request
Kevin McCarthy [Mon, 12 Aug 2013 04:32:02 +0000 (18:32 -1000)]
persist on _vcr_request

13 years agorefactor tests a bit
Kevin McCarthy [Mon, 12 Aug 2013 04:09:56 +0000 (18:09 -1000)]
refactor tests a bit

13 years agoUse ordereddict so responses actually stay in order
Kevin McCarthy [Mon, 12 Aug 2013 03:54:22 +0000 (17:54 -1000)]
Use ordereddict so responses actually stay in order

13 years agoremove debugging code from Request and add repr
Kevin McCarthy [Mon, 12 Aug 2013 03:07:13 +0000 (17:07 -1000)]
remove debugging code from Request and add repr

13 years agoadd test for redirects
Kevin McCarthy [Mon, 12 Aug 2013 01:05:19 +0000 (15:05 -1000)]
add test for redirects

13 years agoimprove mocked headers so urllib2 can handle redirects too
Kevin McCarthy [Mon, 12 Aug 2013 01:02:28 +0000 (15:02 -1000)]
improve mocked headers so urllib2 can handle redirects too

13 years agoFix travis
Kevin McCarthy [Sun, 11 Aug 2013 06:08:45 +0000 (20:08 -1000)]
Fix travis

13 years agowhats up with travis
Kevin McCarthy [Sun, 11 Aug 2013 03:48:06 +0000 (17:48 -1000)]
whats up with travis

13 years agoupdate test_wild path
Kevin McCarthy [Sun, 11 Aug 2013 03:12:26 +0000 (17:12 -1000)]
update test_wild path

13 years agomove wild into its own folder
Kevin McCarthy [Sun, 11 Aug 2013 03:09:09 +0000 (17:09 -1000)]
move wild into its own folder