Skip to content

Instantly share code, notes, and snippets.

@mhl
Created August 25, 2016 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhl/119663153881067d0fd44913d20a9ad5 to your computer and use it in GitHub Desktop.
Save mhl/119663153881067d0fd44913d20a9ad5 to your computer and use it in GitHub Desktop.
import json, os, yaml
d = 'nuntium/tests/fixtures/vcr_cassettes/'
for y in os.listdir(d):
yf = os.path.join(d, y)
data = yaml.load(open(yf).read())
print "======== ", y
for i in data['interactions']:
print "---- ", i['request']['uri']
body_dict = i['response']['body']
s = body_dict['string']
print ">>>", s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment