Skip to content

Commit

Permalink
feat: Change some Talpa csv export column titles (#2426)
Browse files Browse the repository at this point in the history
  • Loading branch information
rikuke authored Nov 9, 2023
1 parent c5e53b7 commit 8d466c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 4 additions & 6 deletions backend/benefit/applications/services/applications_csv_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,9 @@ def CSV_COLUMNS(self):
csv_default_column(
"Asiantarkastajan titteli Ahjo", "batch.expert_inspector_title"
),
csv_default_column("Tarkastajan nimi, P2P", "batch.p2p_inspector_name"),
csv_default_column(
"Asiantarkastajan nimi P2P", "batch.p2p_inspector_name"
),
csv_default_column(
"Asiantarkastajan email P2P", "batch.p2p_inspector_email"
"Tarkastajan sähköposti, P2P", "batch.p2p_inspector_email"
),
csv_default_column("Hyväksyjän nimi P2P", "batch.p2p_checker_name"),
]
Expand Down Expand Up @@ -263,9 +261,9 @@ def CSV_COLUMNS(self):
csv_default_column(
"Asiantarkastajan titteli Ahjo", "batch.expert_inspector_title"
),
csv_default_column("Asiantarkastajan nimi P2P", "batch.p2p_inspector_name"),
csv_default_column("Tarkastajan nimi, P2P", "batch.p2p_inspector_name"),
csv_default_column(
"Asiantarkastajan email P2P", "batch.p2p_inspector_email"
"Tarkastajan sähköposti, P2P", "batch.p2p_inspector_email"
),
csv_default_column("Hyväksyjän nimi P2P", "batch.p2p_checker_name"),
# In case there are multiple rows per application, always have the nth ahjo row
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ def test_pruned_applications_csv_output(
assert csv_lines[0][12] == '"Päätöspäivä"'
assert csv_lines[0][13] == '"Asiantarkastajan nimi Ahjo"'
assert csv_lines[0][14] == '"Asiantarkastajan titteli Ahjo"'
assert csv_lines[0][15] == '"Asiantarkastajan nimi P2P"'
assert csv_lines[0][16] == '"Asiantarkastajan email P2P"'
assert csv_lines[0][15] == '"Tarkastajan nimi, P2P"'
assert csv_lines[0][16] == '"Tarkastajan sähköposti, P2P"'
assert csv_lines[0][17] == '"Hyväksyjän nimi P2P"'

# Assert that there are 15 columns in the pruned CSV
Expand Down

0 comments on commit 8d466c6

Please sign in to comment.