Skip to content

Commit

Permalink
Fix CI interaction with moto 1.3.7
Browse files Browse the repository at this point in the history
* Works around getmoto/moto#1924 by ensuring garbage defaults are set in the environment.

Signed-off-by: Brendan Devenney <[email protected]>
  • Loading branch information
Brendan Devenney authored and ngfgrant committed Jun 13, 2019
1 parent 31fe1e6 commit d77d846
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_connection_manager.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-

import os
import pytest
from mock import Mock, patch, sentinel, ANY
from moto import mock_s3
Expand All @@ -22,6 +23,10 @@ def setup_method(self, test_method):
ConnectionManager._clients = {}
ConnectionManager._stack_keys = {}

# Temporary workaround for https://github.com/spulec/moto/issues/1924
os.environ.setdefault("AWS_ACCESS_KEY_ID", "sceptre_test_key_id")
os.environ.setdefault("AWS_SECRET_ACCESS_KEY", "sceptre_test_access_key")

self.connection_manager = ConnectionManager(
region=self.region,
stack_name=self.stack_name,
Expand Down

0 comments on commit d77d846

Please sign in to comment.