Skip to content

Commit 4505eb4

Browse files
committed
Formatting
1 parent 9eb4f50 commit 4505eb4

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

test/unit/test_housekeeper.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,16 @@ def test_housekeeper() -> None:
4040
for opts in __GOOD_OPTS:
4141
assert tutil.run_cmd(housekeeper.main, f"{CMD} {tutil.SQS_OPTS} {opts}") == errcodes.OK
4242

43+
4344
def test_keep_branches_override(csv_file: Generator[str]) -> None:
4445
"""test_keep_branches_override"""
4546
if tutil.SQ.version() == "community":
4647
pytest.skip("No branches in Community")
4748
assert tutil.run_cmd(housekeeper.main, f"{CMD} {tutil.SQS_OPTS} -P 730 -T 730 -R 730 -B 90 -f {csv_file}") == errcodes.OK
4849
nbr_br = tutil.csv_col_count_values(csv_file, 1, "BRANCH_LAST_ANALYSIS")
49-
assert tutil.run_cmd(housekeeper.main, f"{CMD} {tutil.SQS_OPTS} -P 730 -T 730 -R 730 -B 90 -f {csv_file} --keepWhenInactive 'dontkeepanything'") == errcodes.OK
50+
assert (
51+
tutil.run_cmd(housekeeper.main, f"{CMD} {tutil.SQS_OPTS} -P 730 -T 730 -R 730 -B 90 -f {csv_file} --keepWhenInactive 'dontkeepanything'")
52+
== errcodes.OK
53+
)
5054
# With 'dontkeepanything' as branch regexp, more branches to delete should be found
5155
assert tutil.csv_col_count_values(csv_file, 1, "BRANCH_LAST_ANALYSIS") > nbr_br
52-

test/unit/utilities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def csv_col_count_values(csv_file: str, col_name_or_nbr: Union[str, int], *value
304304
if isinstance(col_name_or_nbr, int):
305305
col = col_name_or_nbr - 1
306306
else:
307-
(col,) = get_cols(next(reader, col_name_or_nbr))
307+
(col,) = get_cols(next(reader, col_name_or_nbr))
308308
counter = sum(1 if line[col] in values_to_search else 0 for line in reader)
309309
return counter
310310

0 commit comments

Comments
 (0)