-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
mock_s3 Class Decorator Not Working? #363
Comments
Thanks for opening the issue! I pushed a fix with 3ed9428 that I think should work. Can you give it a test? |
Sorry for the slow response. It works! Thanks for making the fix. |
People who come here might be interested in #1793 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I am trying to use the mock_s3 class decorator but I am running into a
S3ResponseError
. Here's the four test cases I wrote:MyTest1.setUp
. This is the test that fails because of theS3ResponseError
.MyTest2.test_mymodel
instead ofMyTest2.setUP
. This test passes.mock_s3.start()
andmock_s3.stop()
. Whether or not I store the connection as an attribute, these tests pass.So what is going on with
MyTest1
that it would fail because of theS3ResponseError
?And here is the mymodel.py code (the usual demo):
The text was updated successfully, but these errors were encountered: