diff --git a/moto/glue/responses.py b/moto/glue/responses.py index b8262a74fef1..7b4e7c951785 100644 --- a/moto/glue/responses.py +++ b/moto/glue/responses.py @@ -527,9 +527,7 @@ def batch_get_crawlers(self) -> str: def batch_get_jobs(self) -> str: job_names = self._get_param("JobNames") jobs = self.glue_backend.batch_get_jobs(job_names) - jobs_not_found = list( - set(job_names) - set(map(lambda job: job["Name"], jobs)) - ) + jobs_not_found = list(set(job_names) - set(map(lambda job: job["Name"], jobs))) return json.dumps( { "Jobs": jobs, diff --git a/tests/test_glue/test_glue.py b/tests/test_glue/test_glue.py index e74a1ab202d3..83ed0a97db5c 100644 --- a/tests/test_glue/test_glue.py +++ b/tests/test_glue/test_glue.py @@ -238,9 +238,7 @@ def test_batch_get_jobs(): client = create_glue_client() job_name = create_test_job(client) - response = client.batch_get_jobs( - JobNames=[job_name, "job-not-found"] - ) + response = client.batch_get_jobs(JobNames=[job_name, "job-not-found"]) assert len(response["Jobs"]) == 1 assert len(response["JobsNotFound"]) == 1