Skip to content

Commit

Permalink
Blacken. (#6846)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and tseaver committed Dec 5, 2018
1 parent 74b4db8 commit da03d6b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spanner/google/cloud/spanner_v1/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def reload(self):
response = api.get_database_ddl(self.name, metadata=metadata)
self._ddl_statements = tuple(response.statements)

def update_ddl(self, ddl_statements, operation_id=''):
def update_ddl(self, ddl_statements, operation_id=""):
"""Update DDL for this database.
Apply any configured schema from :attr:`ddl_statements`.
Expand Down
4 changes: 2 additions & 2 deletions spanner/tests/system/test_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,10 @@ def test_update_database_ddl_with_operation_id(self):
# We want to make sure the operation completes.
create_op.result(240) # raises on failure / timeout.
# random but shortish always start with letter
operation_id = 'a' + str(uuid.uuid4())[:8]
operation_id = "a" + str(uuid.uuid4())[:8]
operation = temp_db.update_ddl(DDL_STATEMENTS, operation_id=operation_id)

self.assertEqual(operation_id, operation.operation.name.split('/')[-1])
self.assertEqual(operation_id, operation.operation.name.split("/")[-1])

# We want to make sure the operation completes.
operation.result(240) # raises on failure / timeout.
Expand Down
2 changes: 1 addition & 1 deletion spanner/tests/unit/test_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ def test_update_ddl_w_operation_id(self):
pool = _Pool()
database = self._make_one(self.DATABASE_ID, instance, pool=pool)

future = database.update_ddl(DDL_STATEMENTS, operation_id='someOperationId')
future = database.update_ddl(DDL_STATEMENTS, operation_id="someOperationId")

self.assertIs(future, op_future)

Expand Down

0 comments on commit da03d6b

Please sign in to comment.