1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-08 16:53:23 +00:00

Make Serializers Dumber

Let's have the serializer just worry about serializing the dict
that we hand it, and move the unicode stuff up to a serialize module.

This should hopefully let us move toward using a version string in
cassettes.
This commit is contained in:
Kevin McCarthy
2014-05-06 18:48:29 -10:00
parent 4ab46f9643
commit e50f917cf4
5 changed files with 42 additions and 47 deletions

View File

@@ -10,7 +10,7 @@ class MockSerializer(object):
def deserialize(self, cassette_string):
self.serialize_count += 1
self.cassette_string = cassette_string
return ([], [])
return []
def serialize(self, cassette_dict):
self.deserialize_count += 1