-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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 region #4252
Comments
Hi @As1s! Technically it should be possible to support this. If you don't mind me asking - what's the reasoning behind having a non-existent region? |
Extra level of protection so that tests do not write to the real environment. |
Ah, gotcha, that makes sense. The current implementation acts as a validation in itself, to verify that the specified region is correct/supported, and it would be good to keep that. I'll mark it as an enhancement to implement it in a way that doesn't break this behaviour:
|
Also in your Pytest usage example it would be good to show set up of default region env var in the credentials fixture. |
Can you allow mock regions in the mocks?
I have this set
os.environ['AWS_DEFAULT_REGION'] = 'any-region'
and error it produces:
The text was updated successfully, but these errors were encountered: