]> khamidou — GitHub mirrors - vcrpy.git/commitdiff
v1.7.2 v1.7.2
authorIvan Malison <imalison@uber.com>
Tue, 18 Aug 2015 23:26:51 +0000 (16:26 -0700)
committerIvan Malison <imalison@uber.com>
Wed, 19 Aug 2015 00:00:45 +0000 (17:00 -0700)
README.rst
setup.py
vcr/cassette.py

index be3b3490d308da918834ad75a2df8d5c151f61dc..d7ec0410420cb360e971ab8e2418f59e5bfafcb5 100644 (file)
@@ -608,6 +608,8 @@ new API in version 1.0.x
 
 Changelog
 ---------
+-  1.7.2 [#186] Get effective_url in tornado (thanks @mvschaik), [#187]
+   Set request_time on Response object in tornado (thanks @abhinav).
 -  1.7.1 [#183] Patch ``fetch_impl`` instead of the entire HTTPClient
    class for Tornado (thanks @abhinav).
 -  1.7.0 [#177] Properly support coroutine/generator decoration. [#178]
index 30e70fc2b0b03d59b9eaba4f2696948f4bdbe36b..f25468374dd68198016f6db191e0cf6387458471 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -51,7 +51,7 @@ except Exception:
 
 setup(
     name='vcrpy',
-    version='1.7.1',
+    version='1.7.2',
     description=(
         "Automatically mock your HTTP interactions to simplify and "
         "speed up testing"
index a22f9307c2757c94dfe39877d7aa058e0389af68..ff6349282847c899f264ef2a626c5b3d888155c1 100644 (file)
@@ -47,14 +47,16 @@ class CassetteContextDecorator(object):
 
     def _patch_generator(self, cassette):
         with contextlib.ExitStack() as exit_stack:
-            for patcher in CassettePatcherBuilder(cassette).build:
-                exit_stack.enter_contextpatcher
+            for patcher in CassettePatcherBuilder(cassette).build():
+                exit_stack.enter_context(patcher)
             log_format = '{action} context for cassette at {path}.'
             log.debug(log_format.format(
-                cassette._path
+                action="Entering", path=cassette._path
             ))
             yield cassette
-            log.debug('Exiting context for cassette at {0}.'.format(cassette._path))
+            log.debug(log_format.format(
+                action="Exiting", path=cassette._path
+            ))
             # TODO(@IvanMalison): Hmmm. it kind of feels like this should be
             # somewhere else.
             cassette._save()