Skip to content

Commit

Permalink
[MAINTENANCE] Fixes Glue tests on vanilla pytest (#7925)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Gore <gabriel59kg@gmail.com>
  • Loading branch information
3 people committed May 18, 2023
1 parent f43c148 commit fdae032
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/datasource/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,12 @@ def glue_titanic_catalog():
"AWS Glue Data Catalog Data Connector tests are requested, but boto3 is not installed"
)

os.environ[
"AWS_DEFAULT_REGION"
] = "testing" # required when connecting to the glue client, even when mocked

with mock_glue():
region_name: str = "us-east-1"
client = boto3.client("glue", region_name=region_name)
client = boto3.client("glue")
database_name = "db_test"

# Create Database
Expand Down

0 comments on commit fdae032

Please sign in to comment.