Skip to content

Commit

Permalink
Format files with black
Browse files Browse the repository at this point in the history
  • Loading branch information
szemek committed Apr 21, 2023
1 parent 5d26a80 commit 97e3f8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions moto/glue/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 1 addition & 3 deletions tests/test_glue/test_glue.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 97e3f8a

Please sign in to comment.