Skip to content

Commit cca6ccd

Browse files
committed
linting
1 parent 0426ce2 commit cca6ccd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/system/v2_client/test_data_api.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -947,14 +947,14 @@ def test_table_check_and_mutate_rows(data_table, rows_to_delete):
947947
true_row.set_cell(COLUMN_FAMILY_ID1, column, CELL_VAL_TRUE, state=True)
948948
true_row.set_cell(COLUMN_FAMILY_ID1, column, CELL_VAL_FALSE, state=False)
949949
matched = true_row.commit()
950-
assert matched == True
950+
assert matched
951951

952952
false_row = data_table.conditional_row(false_mutation_row_key, BLOCK_ALL_FILTER)
953953
for column in columns:
954954
false_row.set_cell(COLUMN_FAMILY_ID1, column, CELL_VAL_TRUE, state=True)
955955
false_row.delete_cell(COLUMN_FAMILY_ID1, column, state=False)
956956
matched = false_row.commit()
957-
assert matched == False
957+
assert not matched
958958

959959
row1_data = data_table.read_row(true_mutation_row_key)
960960
for column in columns:
@@ -1140,7 +1140,6 @@ def test_table_conditional_row_input_errors(data_table, rows_to_delete):
11401140

11411141

11421142
def test_table_append_row_input_errors(data_table, rows_to_delete):
1143-
from google.api_core.exceptions import InvalidArgument
11441143
from google.cloud.bigtable.row import MAX_MUTATIONS
11451144

11461145
row = data_table.append_row(ROW_KEY)

0 commit comments

Comments
 (0)