From 263d85834917693344e3b6915c95be310e8c537e Mon Sep 17 00:00:00 2001 From: Stephan Date: Mon, 29 Apr 2019 16:21:41 +0200 Subject: [PATCH] setting envvars --- moto/core/models.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/moto/core/models.py b/moto/core/models.py index 19267ca08..9fe1e96bd 100644 --- a/moto/core/models.py +++ b/moto/core/models.py @@ -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