Moto seems to stop mocking after upgrading boto3


I have upgraded boto3 from boto3==1.7.48 to 1.13.11, and this has broken all of my tests that use Moto. It looks like (worryingly) the mock has stopped working altogether and is trying to actually access s3, here is an example test function that was previously working:

But it now gives this error

Any help would be greatly appreciated. Here is the list of upgrades:




I have no idea what changed, but I also ran into this. Here’s my workaround:

Previously I had:

but I changed the region to us-east-1 and everything worked

Since this is just a fake bucket for testing, I see no harm in using a different region if it makes things work

Leave a Reply