change code style to pass black --check

This commit is contained in:
MarcosBernal 2020-04-21 22:33:55 +02:00
parent 753a39ed0d
commit 9381c670ab
2 changed files with 6 additions and 2 deletions

View File

@ -32,7 +32,9 @@ class GlueResponse(BaseResponse):
def get_databases(self):
database_list = self.glue_backend.get_databases()
return json.dumps({"DatabaseList": [{"Name": database.name} for database in database_list]})
return json.dumps(
{"DatabaseList": [{"Name": database.name} for database in database_list]}
)
def create_table(self):
database_name = self.parameters.get("DatabaseName")

View File

@ -67,7 +67,9 @@ def test_get_databases_several_items():
helpers.create_database(client, database_name_1)
helpers.create_database(client, database_name_2)
database_list = sorted(client.get_databases()["DatabaseList"], key=lambda x: x["Name"])
database_list = sorted(
client.get_databases()["DatabaseList"], key=lambda x: x["Name"]
)
database_list.should.have.length_of(2)
database_list[0].should.equal({"Name": database_name_1})
database_list[1].should.equal({"Name": database_name_2})