]> khamidou — GitHub mirrors - vcrpy.git/log
vcrpy.git
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

13 years agodont try to create empty dirs
Kevin McCarthy [Sun, 11 Aug 2013 03:08:57 +0000 (17:08 -1000)]
dont try to create empty dirs

13 years agoconvert requests tests to pytest
Kevin McCarthy [Sun, 11 Aug 2013 03:03:20 +0000 (17:03 -1000)]
convert requests tests to pytest

13 years agoconvert tests to pytest
Kevin McCarthy [Sun, 11 Aug 2013 02:45:35 +0000 (16:45 -1000)]
convert tests to pytest

13 years agoupdate tests
Kevin McCarthy [Sun, 11 Aug 2013 02:18:27 +0000 (16:18 -1000)]
update tests

13 years agoupdate fixture to add proto
Kevin McCarthy [Sat, 10 Aug 2013 23:39:36 +0000 (13:39 -1000)]
update fixture to add proto

13 years agolets store the proto too
Kevin McCarthy [Sat, 10 Aug 2013 23:33:10 +0000 (13:33 -1000)]
lets store the proto too

13 years agolets make url the actual url instead of just the path
Kevin McCarthy [Sat, 10 Aug 2013 23:09:35 +0000 (13:09 -1000)]
lets make url the actual url instead of just the path

13 years agochange response to response_of
Kevin McCarthy [Sat, 10 Aug 2013 23:00:23 +0000 (13:00 -1000)]
change response to response_of

13 years agoRefactor again to try to give Cassette a cleaner interface
Kevin McCarthy [Sat, 10 Aug 2013 22:51:24 +0000 (12:51 -1000)]
Refactor again to try to give Cassette a cleaner interface

13 years agobump revision number since I broke backwards compat
Kevin McCarthy [Thu, 8 Aug 2013 07:55:58 +0000 (21:55 -1000)]
bump revision number since I broke backwards compat

13 years agoupdate readme
Kevin McCarthy [Thu, 8 Aug 2013 07:55:32 +0000 (21:55 -1000)]
update readme

13 years agoadd str to cassette object
Kevin McCarthy [Thu, 8 Aug 2013 07:47:53 +0000 (21:47 -1000)]
add str to cassette object

13 years agoremove extra whitespace
Kevin McCarthy [Thu, 8 Aug 2013 07:42:17 +0000 (21:42 -1000)]
remove extra whitespace

13 years agoupdate vcr stubs to actually call mark_played correctly
Kevin McCarthy [Thu, 8 Aug 2013 07:40:09 +0000 (21:40 -1000)]
update vcr stubs to actually call mark_played correctly

13 years agoadd a couple more tests, change played api to require request being played
Kevin McCarthy [Thu, 8 Aug 2013 07:34:15 +0000 (21:34 -1000)]
add a couple more tests, change played api to require request being played

13 years agoupdate cassette unit tests
Kevin McCarthy [Thu, 8 Aug 2013 07:30:25 +0000 (21:30 -1000)]
update cassette unit tests

13 years agoadd backported counter module
Kevin McCarthy [Thu, 8 Aug 2013 07:17:04 +0000 (21:17 -1000)]
add backported counter module

13 years agoupdate tox to reflect new text directory structure
Kevin McCarthy [Thu, 8 Aug 2013 07:15:42 +0000 (21:15 -1000)]
update tox to reflect new text directory structure

13 years agohold counts in a Counter
Kevin McCarthy [Thu, 8 Aug 2013 05:35:04 +0000 (19:35 -1000)]
hold counts in a Counter

13 years agoadd requests class to sow the seeds of a custom matcher
Kevin McCarthy [Thu, 8 Aug 2013 05:09:21 +0000 (19:09 -1000)]
add requests class to sow the seeds of a custom matcher

13 years agoadd pytestdebug to .gitignore
Kevin McCarthy [Thu, 8 Aug 2013 04:16:32 +0000 (18:16 -1000)]
add pytestdebug to .gitignore

13 years agoadd back the secure write
Kevin McCarthy [Wed, 7 Aug 2013 05:06:55 +0000 (19:06 -1000)]
add back the secure write

13 years agocheck that cassette contains things before returning
Kevin McCarthy [Wed, 7 Aug 2013 04:34:56 +0000 (18:34 -1000)]
check that cassette contains things before returning

13 years agoremove some TODOs
Kevin McCarthy [Tue, 6 Aug 2013 08:26:23 +0000 (22:26 -1000)]
remove some TODOs

13 years agoreplace cached() with mark_played / play_count
Kevin McCarthy [Tue, 6 Aug 2013 08:25:45 +0000 (22:25 -1000)]
replace cached() with mark_played / play_count

13 years agodont append to cassette file
Kevin McCarthy [Tue, 6 Aug 2013 08:17:28 +0000 (22:17 -1000)]
dont append to cassette file

13 years agobring back the files module, but do serialization in cassette
Kevin McCarthy [Tue, 6 Aug 2013 07:27:15 +0000 (21:27 -1000)]
bring back the files module, but do serialization in cassette

13 years agofix travis
Kevin McCarthy [Tue, 6 Aug 2013 07:04:50 +0000 (21:04 -1000)]
fix travis

13 years agooops, shouldnt have removed that file
Kevin McCarthy [Tue, 6 Aug 2013 07:03:01 +0000 (21:03 -1000)]
oops, shouldnt have removed that file

13 years agofix typo
Kevin McCarthy [Tue, 6 Aug 2013 07:01:11 +0000 (21:01 -1000)]
fix typo

13 years agoremove fixtures, remove some dead httpbin assert code
Kevin McCarthy [Tue, 6 Aug 2013 06:54:16 +0000 (20:54 -1000)]
remove fixtures, remove some dead httpbin assert code

13 years agoremove typo
Kevin McCarthy [Tue, 6 Aug 2013 06:51:03 +0000 (20:51 -1000)]
remove typo

13 years agofix typo
Kevin McCarthy [Tue, 6 Aug 2013 06:47:57 +0000 (20:47 -1000)]
fix typo

13 years agoadd unit tests for Cassette implementation
Kevin McCarthy [Tue, 6 Aug 2013 06:30:31 +0000 (20:30 -1000)]
add unit tests for Cassette implementation

13 years agoadd unit tests
Kevin McCarthy [Tue, 6 Aug 2013 06:05:13 +0000 (20:05 -1000)]
add unit tests

13 years agoSubstantial refactoring
Dan Lecocq [Fri, 2 Aug 2013 23:15:26 +0000 (16:15 -0700)]
Substantial refactoring

This refactoring includes some PEP-8 compliance changes, as well as some more
complete testing to ensure that we're in fact serving everything out of
cassettes when we thing we are.

Incidentally, it also includes fixes for #3 and #4

13 years agoupdate copyright date
Kevin McCarthy [Tue, 6 Aug 2013 05:41:46 +0000 (19:41 -1000)]
update copyright date

13 years agoUpdate README / version bump for new libyaml feature
Kevin McCarthy [Thu, 25 Jul 2013 04:48:33 +0000 (18:48 -1000)]
Update README / version bump for new libyaml feature

13 years agoMerge pull request #16 from dlecocq/master
Kevin McCarthy [Thu, 25 Jul 2013 04:45:43 +0000 (21:45 -0700)]
Merge pull request #16 from dlecocq/master

Use the libYAML version of yaml if it's available

13 years agoUse the libYAML version of yaml if it's available
Dan Lecocq [Tue, 23 Jul 2013 22:25:33 +0000 (15:25 -0700)]
Use the libYAML version of yaml if it's available