I have a Flask app that uses AWS services such as dynamodb. I want to mock these out during unit tests but I’m having trouble doing so. Here is a minimal example that doesn’t work for me: I’m getting an error that the resource does not exist. This means that an AWS call is in fact being made. Why isn’t
Tag: moto
Using unittests and moto to mock AWS
I am used to pytest approach for unit testing, without using classes. Today I wanted to give a try to unittest and I wanted to encapsulate my tests inside a TestCase. Then consider this sample test class: Why is not the parameter placed in setUpClass visible from the test? I could imagine that by using the @moto.mock_ssm decorator there it