Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 205c35d

Browse files
committed
blacken
1 parent 405581e commit 205c35d

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

tests/system/data/test_system_async.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,12 +329,16 @@ async def test_mutation_add_to_cell(self, target, temp_rows):
329329
# add row to temp_rows, for future deletion
330330
await temp_rows.add_aggregate_row(row_key, family=family, qualifier=qualifier)
331331
# set and check cell value
332-
await target.mutate_row(row_key, AddToCell(family, qualifier, 1, timestamp_micros=0))
332+
await target.mutate_row(
333+
row_key, AddToCell(family, qualifier, 1, timestamp_micros=0)
334+
)
333335
encoded_result = await self._retrieve_cell_value(target, row_key)
334336
int_result = int.from_bytes(encoded_result, byteorder="big")
335337
assert int_result == 1
336338
# update again
337-
await target.mutate_row(row_key, AddToCell(family, qualifier, 9, timestamp_micros=0))
339+
await target.mutate_row(
340+
row_key, AddToCell(family, qualifier, 9, timestamp_micros=0)
341+
)
338342
encoded_result = await self._retrieve_cell_value(target, row_key)
339343
int_result = int.from_bytes(encoded_result, byteorder="big")
340344
assert int_result == 10

tests/unit/data/test_mutations.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -720,13 +720,17 @@ def _make_one(self, *args, **kwargs):
720720
@pytest.mark.parametrize("input_val", [2**64, -(2**64)])
721721
def test_ctor_large_int(self, input_val):
722722
with pytest.raises(ValueError) as e:
723-
self._make_one(family="f", qualifier=b"b", value=input_val, timestamp_micros=123)
723+
self._make_one(
724+
family="f", qualifier=b"b", value=input_val, timestamp_micros=123
725+
)
724726
assert "int values must be between" in str(e.value)
725727

726728
@pytest.mark.parametrize("input_val", ["", "a", "abc", "hello world!"])
727729
def test_ctor_str_value(self, input_val):
728730
with pytest.raises(TypeError) as e:
729-
self._make_one(family="f", qualifier=b"b", value=input_val, timestamp_micros=123)
731+
self._make_one(
732+
family="f", qualifier=b"b", value=input_val, timestamp_micros=123
733+
)
730734
assert "value must be int" in str(e.value)
731735

732736
def test_ctor(self):

0 commit comments

Comments
 (0)