Skip to content

Commit

Permalink
test: set AWS regions explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
felixscherz committed Jan 6, 2025
1 parent a6939ea commit 92a6659
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/catalog/test_s3tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ def table_bucket_arn() -> str:

@pytest.fixture
def catalog(table_bucket_arn: str) -> S3TableCatalog:
properties = {"s3tables.table-bucket-arn": table_bucket_arn}
properties = {"s3tables.table-bucket-arn": table_bucket_arn, "s3tables.region": "us-east-1", "s3.region": "us-east-1"}
return S3TableCatalog(name="test_s3tables_catalog", **properties)


def test_creating_catalog_validates_s3_table_bucket_exists(table_bucket_arn: str) -> None:
properties = {"s3tables.table-bucket-arn": f"{table_bucket_arn}-modified"}
properties = {"s3tables.table-bucket-arn": f"{table_bucket_arn}-modified", "s3tables.region": "us-east-1"}
with pytest.raises(TableBucketNotFound):
S3TableCatalog(name="test_s3tables_catalog", **properties)

Expand Down

0 comments on commit 92a6659

Please sign in to comment.