Skip to content

Commit

Permalink
fix: region typo in test (#17766)
Browse files Browse the repository at this point in the history
  • Loading branch information
TeddyCr authored Sep 9, 2024
1 parent 9107c41 commit e4c01c5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ingestion/tests/unit/profiler/pandas/test_custom_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
from metadata.profiler.processor.core import Profiler

BUCKET_NAME = "MyBucket"
REGION = "us-west-1"


@mock_aws
Expand All @@ -56,7 +57,7 @@ class MetricsTest(TestCase):
securityConfig=AWSCredentials(
awsAccessKeyId="fake_access_key",
awsSecretAccessKey="fake_secret_key",
awsRegion="us-west-1",
awsRegion=REGION,
)
)
)
Expand Down Expand Up @@ -106,14 +107,14 @@ def setUp(self):
boto3.DEFAULT_SESSION = None
self.client = boto3.client(
"s3",
region_name="us-weat-1",
region_name=REGION,
)

# check that we are not running our test against a real bucket
try:
s3 = boto3.resource(
"s3",
region_name="us-west-1",
region_name=REGION,
aws_access_key_id="fake_access_key",
aws_secret_access_key="fake_secret_key",
)
Expand All @@ -125,7 +126,7 @@ def setUp(self):
raise EnvironmentError(err)
self.client.create_bucket(
Bucket=BUCKET_NAME,
CreateBucketConfiguration={"LocationConstraint": "us-west-1"},
CreateBucketConfiguration={"LocationConstraint": REGION},
)

resources_paths = [
Expand Down

0 comments on commit e4c01c5

Please sign in to comment.