1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 09:13:23 +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

@@ -8,7 +8,8 @@ from vcr.errors import UnhandledHTTPRequestError
def test_cassette_load(tmpdir):
a_file = tmpdir.join('test_cassette.yml')
a_file.write(yaml.dump([
{'request': 'foo', 'response': 'bar'}
{'request': {'body': '', 'uri': 'foo', 'method': 'GET', 'headers': {}},
'response': 'bar'}
]))
a_cassette = Cassette.load(str(a_file))
assert len(a_cassette) == 1