Mock AWS credentials

https://github.com/spulec/moto/issues/1924
This commit is contained in:
Lorenz Hufnagel 2018-11-16 12:23:39 +01:00
commit cf5bd7665c
2 changed files with 6 additions and 2 deletions

View file

@ -4,6 +4,7 @@ from __future__ import absolute_import
import functools
import inspect
import os
import re
import six
from io import BytesIO
@ -21,6 +22,11 @@ from .utils import (
)
# "Mock" the AWS credentials as they can't be mocked in Botocore currently
os.environ.setdefault("AWS_ACCESS_KEY_ID", "foobar_key")
os.environ.setdefault("AWS_SECRET_ACCESS_KEY", "foobar_secret")
class BaseMockAWS(object):
nested_count = 0