]>
khamidou — GitHub mirrors - vcrpy.git/log
Kevin McCarthy [Fri, 20 Dec 2013 05:34:06 +0000 (19:34 -1000)]
Let's have the new exceptions subclass basic exception types
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.
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.
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)
Kevin McCarthy [Mon, 16 Dec 2013 02:43:11 +0000 (16:43 -1000)]
Add Decorator Support
Kevin McCarthy [Mon, 16 Dec 2013 02:19:12 +0000 (16:19 -1000)]
Removing Pypy tests until travis installs version 2.2.1
Kevin McCarthy [Mon, 2 Dec 2013 00:41:18 +0000 (14:41 -1000)]
Version bump to 0.5.0
Kevin McCarthy [Mon, 2 Dec 2013 00:38:46 +0000 (14:38 -1000)]
formatting fixes
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.
Kevin McCarthy [Sun, 1 Dec 2013 23:46:44 +0000 (13:46 -1000)]
Fix Cryptic 'write-protected' Message
Closes #46
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.
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.
Kevin McCarthy [Sun, 10 Nov 2013 22:31:11 +0000 (12:31 -1000)]
Version Bump to 0.4.0
Kevin McCarthy [Sun, 10 Nov 2013 22:25:59 +0000 (12:25 -1000)]
Remove Secure File Overwrite Support
Closes #42
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
Veros Kaplan [Wed, 6 Nov 2013 12:33:31 +0000 (13:33 +0100)]
Added test: accessing same recource three times in once mode
Veros Kaplan [Wed, 6 Nov 2013 12:26:46 +0000 (13:26 +0100)]
Added test: accessing two times same page
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.
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.
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.
Kevin McCarthy [Fri, 25 Oct 2013 05:56:36 +0000 (19:56 -1000)]
bump for version 0.3.4
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.
Kevin McCarthy [Mon, 30 Sep 2013 01:56:13 +0000 (15:56 -1000)]
Fix issue #36 - error message for unregistered matcher was broken
Kevin McCarthy [Sun, 22 Sep 2013 02:41:07 +0000 (16:41 -1000)]
Bump version for bugfix release
Hector Dearman [Sat, 21 Sep 2013 20:47:27 +0000 (21:47 +0100)]
allow match_on to be passed as an argument VCR
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
Kevin McCarthy [Tue, 17 Sep 2013 06:56:16 +0000 (20:56 -1000)]
Update README.md
Kevin McCarthy [Tue, 17 Sep 2013 06:54:27 +0000 (20:54 -1000)]
Update README.md
Kevin McCarthy [Tue, 17 Sep 2013 06:52:38 +0000 (20:52 -1000)]
bump development status to Beta
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.
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
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.
Kevin McCarthy [Fri, 30 Aug 2013 18:01:30 +0000 (08:01 -1000)]
Add new subdirectories in setup.py. Closes #26. Bumps version
Kevin McCarthy [Sat, 24 Aug 2013 18:09:51 +0000 (08:09 -1000)]
Update README.md
Kevin McCarthy [Sat, 24 Aug 2013 07:41:52 +0000 (21:41 -1000)]
Update README.md
Kevin McCarthy [Sat, 24 Aug 2013 05:56:13 +0000 (19:56 -1000)]
pep8 fixes
Kevin McCarthy [Sat, 24 Aug 2013 03:47:08 +0000 (17:47 -1000)]
Update README and bump version
Kevin McCarthy [Sat, 24 Aug 2013 03:33:14 +0000 (17:33 -1000)]
Fix intermittent test failure due to http happening too fast
shu zOMG chen [Thu, 22 Aug 2013 00:27:29 +0000 (14:27 -1000)]
Don't save cassette when it hasn't been modified
Kevin McCarthy [Fri, 23 Aug 2013 04:38:25 +0000 (18:38 -1000)]
remove unused cassette in with statement
Kevin McCarthy [Fri, 23 Aug 2013 04:36:59 +0000 (18:36 -1000)]
add tests for registering serializer
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
Kevin McCarthy [Fri, 23 Aug 2013 03:39:52 +0000 (17:39 -1000)]
Let's do an instance/module-based API for serializers
shu zOMG chen [Wed, 21 Aug 2013 20:44:30 +0000 (10:44 -1000)]
Added test to confirm whether cStringIO works
Kevin McCarthy [Tue, 20 Aug 2013 05:47:54 +0000 (19:47 -1000)]
test cassette library dir
Kevin McCarthy [Tue, 20 Aug 2013 05:34:22 +0000 (19:34 -1000)]
start adding config tests
Kevin McCarthy [Tue, 20 Aug 2013 05:24:34 +0000 (19:24 -1000)]
keep yaml as default cassette serializer to fix unit tests
Kevin McCarthy [Tue, 20 Aug 2013 05:17:24 +0000 (19:17 -1000)]
clarify the readme a bit
Kevin McCarthy [Tue, 20 Aug 2013 05:12:32 +0000 (19:12 -1000)]
make config options actually do stuff
Kevin McCarthy [Tue, 20 Aug 2013 04:53:29 +0000 (18:53 -1000)]
add note to readme
Kevin McCarthy [Tue, 20 Aug 2013 04:48:23 +0000 (18:48 -1000)]
Begin work on implementing configuration interface
Kevin McCarthy [Tue, 20 Aug 2013 04:36:40 +0000 (18:36 -1000)]
document configuration stuffs
shu zOMG chen [Mon, 19 Aug 2013 07:43:14 +0000 (21:43 -1000)]
Adding json serializer
Kevin McCarthy [Tue, 20 Aug 2013 05:34:38 +0000 (19:34 -1000)]
remove errant print statements
Kevin McCarthy [Tue, 20 Aug 2013 05:26:56 +0000 (19:26 -1000)]
remove unused test file
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
Kevin McCarthy [Mon, 12 Aug 2013 05:01:28 +0000 (19:01 -1000)]
update readme
Kevin McCarthy [Mon, 12 Aug 2013 04:59:36 +0000 (18:59 -1000)]
update readme
Kevin McCarthy [Mon, 12 Aug 2013 04:57:28 +0000 (18:57 -1000)]
update readme
Kevin McCarthy [Mon, 12 Aug 2013 04:53:22 +0000 (18:53 -1000)]
update readme
Kevin McCarthy [Mon, 12 Aug 2013 04:51:29 +0000 (18:51 -1000)]
update readme
Kevin McCarthy [Mon, 12 Aug 2013 04:46:03 +0000 (18:46 -1000)]
update README
Kevin McCarthy [Mon, 12 Aug 2013 04:42:09 +0000 (18:42 -1000)]
add the test from the readme
Kevin McCarthy [Mon, 12 Aug 2013 04:32:02 +0000 (18:32 -1000)]
persist on _vcr_request
Kevin McCarthy [Mon, 12 Aug 2013 04:09:56 +0000 (18:09 -1000)]
refactor tests a bit
Kevin McCarthy [Mon, 12 Aug 2013 03:54:22 +0000 (17:54 -1000)]
Use ordereddict so responses actually stay in order
Kevin McCarthy [Mon, 12 Aug 2013 03:07:13 +0000 (17:07 -1000)]
remove debugging code from Request and add repr
Kevin McCarthy [Mon, 12 Aug 2013 01:05:19 +0000 (15:05 -1000)]
add test for redirects
Kevin McCarthy [Mon, 12 Aug 2013 01:02:28 +0000 (15:02 -1000)]
improve mocked headers so urllib2 can handle redirects too
Kevin McCarthy [Sun, 11 Aug 2013 06:08:45 +0000 (20:08 -1000)]
Fix travis
Kevin McCarthy [Sun, 11 Aug 2013 03:48:06 +0000 (17:48 -1000)]
whats up with travis
Kevin McCarthy [Sun, 11 Aug 2013 03:12:26 +0000 (17:12 -1000)]
update test_wild path
Kevin McCarthy [Sun, 11 Aug 2013 03:09:09 +0000 (17:09 -1000)]
move wild into its own folder
Kevin McCarthy [Sun, 11 Aug 2013 03:08:57 +0000 (17:08 -1000)]
dont try to create empty dirs
Kevin McCarthy [Sun, 11 Aug 2013 03:03:20 +0000 (17:03 -1000)]
convert requests tests to pytest
Kevin McCarthy [Sun, 11 Aug 2013 02:45:35 +0000 (16:45 -1000)]
convert tests to pytest
Kevin McCarthy [Sun, 11 Aug 2013 02:18:27 +0000 (16:18 -1000)]
update tests
Kevin McCarthy [Sat, 10 Aug 2013 23:39:36 +0000 (13:39 -1000)]
update fixture to add proto
Kevin McCarthy [Sat, 10 Aug 2013 23:33:10 +0000 (13:33 -1000)]
lets store the proto too
Kevin McCarthy [Sat, 10 Aug 2013 23:09:35 +0000 (13:09 -1000)]
lets make url the actual url instead of just the path
Kevin McCarthy [Sat, 10 Aug 2013 23:00:23 +0000 (13:00 -1000)]
change response to response_of
Kevin McCarthy [Sat, 10 Aug 2013 22:51:24 +0000 (12:51 -1000)]
Refactor again to try to give Cassette a cleaner interface
Kevin McCarthy [Thu, 8 Aug 2013 07:55:58 +0000 (21:55 -1000)]
bump revision number since I broke backwards compat
Kevin McCarthy [Thu, 8 Aug 2013 07:55:32 +0000 (21:55 -1000)]
update readme
Kevin McCarthy [Thu, 8 Aug 2013 07:47:53 +0000 (21:47 -1000)]
add str to cassette object
Kevin McCarthy [Thu, 8 Aug 2013 07:42:17 +0000 (21:42 -1000)]
remove extra whitespace
Kevin McCarthy [Thu, 8 Aug 2013 07:40:09 +0000 (21:40 -1000)]
update vcr stubs to actually call mark_played correctly
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
Kevin McCarthy [Thu, 8 Aug 2013 07:30:25 +0000 (21:30 -1000)]
update cassette unit tests
Kevin McCarthy [Thu, 8 Aug 2013 07:17:04 +0000 (21:17 -1000)]
add backported counter module
Kevin McCarthy [Thu, 8 Aug 2013 07:15:42 +0000 (21:15 -1000)]
update tox to reflect new text directory structure
Kevin McCarthy [Thu, 8 Aug 2013 05:35:04 +0000 (19:35 -1000)]
hold counts in a Counter
Kevin McCarthy [Thu, 8 Aug 2013 05:09:21 +0000 (19:09 -1000)]
add requests class to sow the seeds of a custom matcher
Kevin McCarthy [Thu, 8 Aug 2013 04:16:32 +0000 (18:16 -1000)]
add pytestdebug to .gitignore
Kevin McCarthy [Wed, 7 Aug 2013 05:06:55 +0000 (19:06 -1000)]
add back the secure write
Kevin McCarthy [Wed, 7 Aug 2013 04:34:56 +0000 (18:34 -1000)]
check that cassette contains things before returning
Kevin McCarthy [Tue, 6 Aug 2013 08:26:23 +0000 (22:26 -1000)]
remove some TODOs
Kevin McCarthy [Tue, 6 Aug 2013 08:25:45 +0000 (22:25 -1000)]
replace cached() with mark_played / play_count
Kevin McCarthy [Tue, 6 Aug 2013 08:17:28 +0000 (22:17 -1000)]
dont append to cassette file
Kevin McCarthy [Tue, 6 Aug 2013 07:27:15 +0000 (21:27 -1000)]
bring back the files module, but do serialization in cassette