From 1e7af1ebfce4cb2a1e01c7f93fd14e4134576ca8 Mon Sep 17 00:00:00 2001 From: J Hughes Date: Thu, 14 May 2026 12:59:03 -0300 Subject: [PATCH] fix line comparison and assert --- tests/test_dogrib.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_dogrib.py b/tests/test_dogrib.py index 182e876c..68743cc7 100644 --- a/tests/test_dogrib.py +++ b/tests/test_dogrib.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 @@ -79,7 +79,7 @@ def test_readme_cmd(self): with open(result_Forest08) as result_file: with open(baseline_Forest08) 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") @@ -98,9 +98,9 @@ def test_readme_cmd(self): if diffProp.getbbox(): equal = False print("The image PropagationTree1.png doesn't match the baseline file") - - self.assertTrue(equal) """ + self.assertTrue(equal) + if __name__ == "__main__":