Skip to content

Commit 106df68

Browse files
committed
Fix column of CSV in 9.9-
1 parent d4e4f26 commit 106df68

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/test_findings.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,12 +455,16 @@ def test_output_format_branch() -> None:
455455
findings_export.main()
456456
assert int(str(e.value)) == errcodes.OK
457457
br_list = utilities.csv_to_list(br)
458+
br, pr = BRANCH_COL, PR_COL
459+
if util.SQ.version() < (10, 2, 0):
460+
br += 1
461+
pr += 1
458462
with open(util.CSV_FILE, encoding="utf-8") as fd:
459463
reader = csv.reader(fd)
460464
next(reader)
461465
for line in reader:
462-
assert line[BRANCH_COL] in br_list
463-
assert line[PR_COL] == ""
466+
assert line[br] in br_list
467+
assert line[pr] == ""
464468
assert line[PROJECT_COL] == "okorach_sonar-tools"
465469
util.clean(util.CSV_FILE)
466470

0 commit comments

Comments
 (0)