Skip to content

Commit

Permalink
fix: add SBOM to powerBI csv (#3355)
Browse files Browse the repository at this point in the history
  • Loading branch information
rikuke authored Sep 26, 2024
1 parent ef3e6cb commit 6ce299f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def _csv_response(
prune_data_for_talpa,
)
response = StreamingHttpResponse(
csv_service.get_csv_string_lines_generator(),
csv_service.get_csv_string_lines_generator(add_bom=True),
content_type="text/csv",
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ def test_get_power_bi_data(power_bi_client, decided_application_with_decision_da
# Assert CSV has a header and at least one data row
assert len(rows) > 1
header = rows[0]
assert "Hakemusnumero" in header
assert '\ufeff"Hakemusnumero"' in header
assert "Talpaan viennin päivä" in header

assert rows[1][header.index("Hakemusnumero")] == str(
assert rows[1][header.index('\ufeff"Hakemusnumero"')] == str(
decided_application_with_decision_date.application_number
)

0 comments on commit 6ce299f

Please sign in to comment.