Skip to content

Commit de31050

Browse files
committed
test: rename test_s3tables.py -> integration_test_s3tables.py
1 parent 188c45d commit de31050

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

tests/catalog/test_s3tables.py renamed to tests/catalog/integration_test_s3tables.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,25 @@ def table_name(table_name: str) -> str:
2020

2121
@pytest.fixture
2222
def table_bucket_arn() -> str:
23+
"""Set the environment variable AWS_TEST_S3_TABLE_BUCKET_ARN for an S3 table bucket to test."""
2324
import os
2425

25-
# since the moto library does not support s3tables as of 2024-12-14 we have to test against a real AWS endpoint
26-
# in one of the supported regions.
27-
28-
return os.environ["ARN"]
26+
table_bucket_arn = os.getenv("AWS_TEST_S3_TABLE_BUCKET_ARN")
27+
if not table_bucket_arn:
28+
raise ValueError(
29+
"Please specify a table bucket arn to run the test by setting environment variable AWS_TEST_S3_TABLE_BUCKET_ARN"
30+
)
31+
return table_bucket_arn
2932

3033

3134
@pytest.fixture
3235
def aws_region() -> str:
3336
import os
3437

35-
return os.environ["AWS_REGION"]
38+
aws_region = os.getenv("AWS_REGION")
39+
if not aws_region:
40+
raise ValueError("Please specify an AWS region to run the test by setting environment variable AWS_REGION")
41+
return aws_region
3642

3743

3844
@pytest.fixture

0 commit comments

Comments
 (0)