Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Consider using moto for placebo unit tests #39

@vlcinsky

Description

@vlcinsky

placebo provides feature to save recorded requests, but for this it has to talk to real AWS service to get some response what requires some credentials being in place and also breaks the assumption that unit test shall not be dependent on other things around.

In my current PR #37 I have a problem, that the test case is failing in different way in my own environment and at Travis.

In current test suite I also did not find a test, which would save responses by calling some real boto3 operations - all recordings is done by pill.save_response call.

Do you feel, moto could serve as solution for this? We could use moto to create a S3 bucket, put there some objects and expect AWS calls in test case to use this mocked service.

What do you think of it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions