1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-10 01:25:34 +00:00

Replaced yaml dump of Request object with plain dict dump

This commit is contained in:
Max Shytikov
2014-04-24 02:05:14 +02:00
parent 0408bdaadb
commit 1e995c3c9b
5 changed files with 14 additions and 36 deletions

View File

@@ -1,9 +1,7 @@
- request: !!python/object:vcr.request.Request
- request:
body: null
headers: !!python/object/apply:__builtin__.frozenset
- - !!python/tuple [Accept-Encoding, 'gzip, deflate, compress']
- !!python/tuple [User-Agent, python-requests/2.2.1 CPython/2.6.1 Darwin/10.8.0]
- !!python/tuple [Accept, '*/*']
headers: {Accept: '*/*', Accept-Encoding: 'gzip, deflate, compress', User-Agent: python-requests/2.2.1
CPython/2.6.1 Darwin/10.8.0}
method: GET
uri: http://httpbin.org:80/ip
response:

View File

@@ -1,9 +1,6 @@
- request: !!python/object:vcr.request.Request
- request:
body: null
headers: !!python/object/apply:__builtin__.frozenset
- - !!python/tuple [Accept-Encoding, 'gzip, deflate, compress']
- !!python/tuple [User-Agent, vcrpy-test]
- !!python/tuple [Accept, '*/*']
headers: {Accept: '*/*', Accept-Encoding: 'gzip, deflate, compress', User-Agent: vcrpy-test}
method: GET
uri: http://seomoz.org:80/
response:
@@ -11,12 +8,9 @@
headers: ["Location: http://moz.com/\r\n", "Server: BigIP\r\n", "Connection: Keep-Alive\r\n",
"Content-Length: 0\r\n"]
status: {code: 301, message: Moved Permanently}
- request: !!python/object:vcr.request.Request
- request:
body: null
headers: !!python/object/apply:__builtin__.frozenset
- - !!python/tuple [Accept-Encoding, 'gzip, deflate, compress']
- !!python/tuple [User-Agent, vcrpy-test]
- !!python/tuple [Accept, '*/*']
headers: {Accept: '*/*', Accept-Encoding: 'gzip, deflate, compress', User-Agent: vcrpy-test}
method: GET
uri: http://moz.com:80/
response: