From 06c1814cd17dc1a665ae19e1fc725a6dadb59bbf Mon Sep 17 00:00:00 2001 From: J Hughes Date: Thu, 14 May 2026 13:36:29 -0300 Subject: [PATCH 1/2] change line comparison to strip Trim trailing commas in comparison for test validation. --- tests/test_20x20.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_20x20.py b/tests/test_20x20.py index 7b4290e3..bd822d19 100644 --- a/tests/test_20x20.py +++ b/tests/test_20x20.py @@ -8,7 +8,7 @@ # be pasted into the github action yml file and here. It should just be in the action # yml file and read here, with --onlyProcessing appended here. """ -import unittest +import unittest import os.path import datetime from cell2fire.utils.ParseInputs import make_parser @@ -75,7 +75,7 @@ def test_readme_cmd(self): with open(result_path) as result_file: with open(baseline_path) as baseline_file: for line1, line2 in zip(result_file, baseline_file): - if not line1 == line2: + if not line1.strip().rstrip(',') == line2.strip().rstrip(',') equal = False print("In File Grids1/ForestGrid08.csv the result is wrong") From 27527edb36cb277752fa73aef89f90f1d1521fd8 Mon Sep 17 00:00:00 2001 From: J Hughes Date: Thu, 14 May 2026 13:47:10 -0300 Subject: [PATCH 2/2] add missing : --- tests/test_20x20.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_20x20.py b/tests/test_20x20.py index bd822d19..129a62e9 100644 --- a/tests/test_20x20.py +++ b/tests/test_20x20.py @@ -75,7 +75,7 @@ def test_readme_cmd(self): with open(result_path) as result_file: with open(baseline_path) as baseline_file: for line1, line2 in zip(result_file, baseline_file): - if not line1.strip().rstrip(',') == line2.strip().rstrip(',') + if not line1.strip().rstrip(',') == line2.strip().rstrip(','): equal = False print("In File Grids1/ForestGrid08.csv the result is wrong")