Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for pickle serialization #53

Merged
merged 2 commits into from
Feb 15, 2019
Merged

Conversation

parroyo
Copy link
Contributor

@parroyo parroyo commented Oct 19, 2016

As I found several problems serializing complex data in JSON documents, as described in #48 #45 and with others types like Dynamodb Binary or Decimal data. I added an option to use pickle to store the responses instead of JSON documents.
Recording the responses in pickle format fixes all the complex types serialization issues.

The playback mode will look for the recorded responses in any of the supported formats, so you can use a mixed solution with JSON and pickle formats for different responses. All the previous generated JSON documents will be valid.

@garnaat
Copy link
Owner

garnaat commented Sep 1, 2018

Thanks for the contribution. This looks really good. I'm going to do some local testing. It seems like we would want to add some tests, especially around the selection of the right serializer when playing back.

@nimbusscale
Copy link

Is there any chance to get this merged? Would be awesome to be able to have tests for interactions with S3 and Lambda Invoke.

Love Placebo. Thanks for all the work so far.

@garnaat
Copy link
Owner

garnaat commented Feb 9, 2019

I'll pull and test this weekend.

@garnaat garnaat merged commit 105b7ae into garnaat:develop Feb 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants