Skip to content

Commit

Permalink
Try passing in the region in a different place
Browse files Browse the repository at this point in the history
  • Loading branch information
WillGibson committed Nov 12, 2024
1 parent bb3634f commit 926118b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions postgres/tests/test_manage_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def test_create_or_update_db_user_when_user_exists(self):

@mock_aws
def test_create_or_update_user_secret(self):
ssm = boto3.client("ssm")
ssm = boto3.client("ssm", region_name="eu-west-2")
user_secret_name = "/test/secret"
user_secret_string = {"username": "test_user", "password": "test_password"}

Expand Down Expand Up @@ -114,7 +114,7 @@ def test_create_or_update_user_secret_overwrites(self):
@patch("postgres.manage_users.psycopg2.connect")
@mock_aws
def test_handler(self, mock_connect, mock_create_or_update_db_user):
secretsmanager = boto3.client("secretsmanager", region_name="eu-west-2")
secretsmanager = boto3.client("secretsmanager")
secret_id = secretsmanager.create_secret(
Name=self.secret_name, SecretString=self.secret_string
)["ARN"]
Expand Down

0 comments on commit 926118b

Please sign in to comment.