change code style to pass black --check
This commit is contained in:
parent
753a39ed0d
commit
9381c670ab
@ -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")
|
||||
|
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user