File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -20,19 +20,25 @@ def table_name(table_name: str) -> str:
2020
2121@pytest .fixture
2222def 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
3235def 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
You can’t perform that action at this time.
0 commit comments