File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -47,13 +47,15 @@ def aws_region() -> str:
4747
4848
4949@pytest .fixture
50- def table_bucket_arn (monkeypatch : pytest .MonkeyPatch , moto_endpoint_url : str ) -> str :
50+ def table_bucket_arn (monkeypatch : pytest .MonkeyPatch , moto_endpoint_url : str , aws_region : str ) -> str :
5151 monkeypatch .setenv ("AWS_ENDPOINT_URL" , moto_endpoint_url )
5252
5353 prefix = "pyiceberg-table-bucket-"
5454 random_tag = "" .join (choice (string .ascii_letters ) for _ in range (12 ))
5555 name = (prefix + random_tag ).lower ()
56- table_bucket_arn = boto3 .client ("s3tables" , endpoint_url = moto_endpoint_url ).create_table_bucket (name = name )["arn" ]
56+ table_bucket_arn = boto3 .client ("s3tables" , endpoint_url = moto_endpoint_url , region_name = aws_region ).create_table_bucket (
57+ name = name
58+ )["arn" ]
5759 return table_bucket_arn
5860
5961
You can’t perform that action at this time.
0 commit comments