Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
fix for ut
Browse files Browse the repository at this point in the history
add region name
  • Loading branch information
knakazawa99 committed Mar 17, 2024
1 parent 12781be commit d5c37e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_glue_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
def glue_job_client(aws_credentials):
with mock_glue():
boto_session = aws_credentials.get_boto3_session()
yield boto_session.client("glue")
yield boto_session.client("glue", region_name="us-east-1")


async def test_fetch_result(aws_credentials, glue_job_client):
Expand Down Expand Up @@ -118,6 +118,7 @@ async def test_trigger(aws_credentials, glue_job_client):
arguments={"arg1": "value1"},
aws_credential=aws_credentials,
)
glue_job._get_client = MagicMock(side_effect=[glue_job_client])
glue_job._start_job = MagicMock(side_effect=["test_job_id"])
glue_job_run = await glue_job.trigger()
assert isinstance(glue_job_run, GlueJobRun)
Expand Down

0 comments on commit d5c37e2

Please sign in to comment.