Skip to content
Snippets Groups Projects
Commit 5ce5329d authored by Moul's avatar Moul
Browse files

Fix history test_csv_output() (#258)

parent 48cd3211
No related branches found
No related tags found
No related merge requests found
...@@ -172,35 +172,35 @@ def test_prefix(tx_addresses, outputs, occurence, return_value): ...@@ -172,35 +172,35 @@ def test_prefix(tx_addresses, outputs, occurence, return_value):
csv_reference = ( 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", "1973-07-10 01:11:54",
"CvrMiUhAJpNyX5sdAyZqPE6yEFfSsf6j9EpMmeKvMCWW:DNB", "CvrMiUhAJpNyX5sdAyZqPE6yEFfSsf6j9EpMmeKvMCWW:DNB",
"1.0", "1.0",
"0.09041591320072333", "0.09041591320072333",
"initialisation", "initialisation",
), ],
( [
"1973-07-10 01:11:53", "1973-07-10 01:11:53",
"CmFKubyqbmJWbhyH2eEPVSSs4H4NeXGDfrETzEnRFtPd:CQ5", "CmFKubyqbmJWbhyH2eEPVSSs4H4NeXGDfrETzEnRFtPd:CQ5",
"1.0", "1.0",
"0.09041591320072333", "0.09041591320072333",
"", "",
), ],
( [
"1973-07-10 01:11:52", "1973-07-10 01:11:52",
"CvrMiUhAJpNyX5sdAyZqPE6yEFfSsf6j9EpMmeKvMCWW:DNB", "CvrMiUhAJpNyX5sdAyZqPE6yEFfSsf6j9EpMmeKvMCWW:DNB",
"-1.0", "-1.0",
"-0.09", "-0.09",
"", "",
), ],
( [
"1973-07-10 01:11:51", "1973-07-10 01:11:51",
"CmFKubyqbmJWbhyH2eEPVSSs4H4NeXGDfrETzEnRFtPd:CQ5", "CmFKubyqbmJWbhyH2eEPVSSs4H4NeXGDfrETzEnRFtPd:CQ5",
"-1.0", "-1.0",
"-0.09", "-0.09",
"", "",
), ],
) )
...@@ -224,4 +224,4 @@ def test_csv_output(monkeypatch): ...@@ -224,4 +224,4 @@ def test_csv_output(monkeypatch):
with Path(file).open() as f: with Path(file).open() as f:
reader = csv.reader(f) reader = csv.reader(f)
for row_file, row_ref in zip(reader, csv_reference): for row_file, row_ref in zip(reader, csv_reference):
assert row_file, row_ref assert row_file == row_ref
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment