Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spanner: blacken during codegen. #6846

Merged
merged 1 commit into from
Dec 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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