Skip to content

Commit e661ceb

Browse files
committed
Formatting
1 parent f69e511 commit e661ceb

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

test/unit/test_housekeeper.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,9 @@ def test_keep_branches_override(csv_file: Generator[str]) -> None:
4545
"""test_keep_branches_override"""
4646
if tutil.SQ.version() == "community":
4747
pytest.skip("No branches in Community")
48-
assert tutil.run_cmd(housekeeper.main, f"{CMD} {tutil.SQS_OPTS} -P 730 -T 730 -R 730 -B 90 -f {csv_file}") == errcodes.OK
49-
nbr_br = tutil.csv_col_count_values(csv_file, 1, "BRANCH_LAST_ANALYSIS")
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-
)
48+
opts = f"{CMD} {tutil.SQS_OPTS} -P 730 -T 730 -R 730 -B 90 -f {csv_file}"
49+
assert tutil.run_cmd(housekeeper.main, opts) == errcodes.OK
50+
nbr_br = tutil.csv_col_count_values(csv_file, "Audit Check", "BRANCH_LAST_ANALYSIS")
51+
assert tutil.run_cmd(housekeeper.main, f"{opts} --keepWhenInactive 'dontkeepanything'") == errcodes.OK
5452
# With 'dontkeepanything' as branch regexp, more branches to delete should be found
55-
assert tutil.csv_col_count_values(csv_file, 1, "BRANCH_LAST_ANALYSIS") > nbr_br
53+
assert tutil.csv_col_count_values(csv_file, "Audit Check", "BRANCH_LAST_ANALYSIS") > nbr_br

0 commit comments

Comments
 (0)