From 5ce5329d0207e3f1a94cf724b93f1a2a902f2078 Mon Sep 17 00:00:00 2001
From: Moul <moul@moul.re>
Date: Sat, 7 Dec 2024 21:46:43 +0100
Subject: [PATCH] Fix history test_csv_output() (#258)

---
 tests/unit/money/test_history.py | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/tests/unit/money/test_history.py b/tests/unit/money/test_history.py
index 7ef901b4..05f10dc3 100644
--- a/tests/unit/money/test_history.py
+++ b/tests/unit/money/test_history.py
@@ -172,35 +172,35 @@ def test_prefix(tx_addresses, outputs, occurence, return_value):
 
 
 csv_reference = (
-    ("Date", "Issuers/Recipients", "Amounts Ğ1", "Amounts UDĞ1", "Comment"),
-    (
+    ["Date", "Issuers/Recipients", "Amounts Ğ1", "Amounts UDĞ1", "Comment"],
+    [
         "1973-07-10 01:11:54",
         "CvrMiUhAJpNyX5sdAyZqPE6yEFfSsf6j9EpMmeKvMCWW:DNB",
         "1.0",
         "0.09041591320072333",
         "initialisation",
-    ),
-    (
+    ],
+    [
         "1973-07-10 01:11:53",
         "CmFKubyqbmJWbhyH2eEPVSSs4H4NeXGDfrETzEnRFtPd:CQ5",
         "1.0",
         "0.09041591320072333",
         "",
-    ),
-    (
+    ],
+    [
         "1973-07-10 01:11:52",
         "CvrMiUhAJpNyX5sdAyZqPE6yEFfSsf6j9EpMmeKvMCWW:DNB",
         "-1.0",
         "-0.09",
         "",
-    ),
-    (
+    ],
+    [
         "1973-07-10 01:11:51",
         "CmFKubyqbmJWbhyH2eEPVSSs4H4NeXGDfrETzEnRFtPd:CQ5",
         "-1.0",
         "-0.09",
         "",
-    ),
+    ],
 )
 
 
@@ -224,4 +224,4 @@ def test_csv_output(monkeypatch):
         with Path(file).open() as f:
             reader = csv.reader(f)
             for row_file, row_ref in zip(reader, csv_reference):
-                assert row_file, row_ref
+                assert row_file == row_ref
-- 
GitLab