Skip to content

Commit 99d8149

Browse files
committed
test: disable aws s3 test when root domain is not set
1 parent 8ad8428 commit 99d8149

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

api/terraform/python/openai_api/lambda_openai_function/tests/test_custom_config.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,11 @@ def test_function_calling(self):
171171

172172
def test_aws_s3_bucket(self):
173173
"""Test aws_s3_bucket."""
174+
175+
# If the aws_s3_bucket_name is example.com, then we don't need to test it.
176+
if settings.aws_apigateway_root_domain == "example.com":
177+
return
178+
174179
aws_s3_bucket_name = settings.aws_s3_bucket_name
175180
s3 = settings.aws_s3_client
176181

0 commit comments

Comments
 (0)