File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments