-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: logged in user to alteration csv (#3223)
- Loading branch information
Showing
5 changed files
with
27 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -358,11 +358,15 @@ def test_sensitive_data_removed_csv_output(sanitized_csv_service_with_one_applic | |
assert col_heading not in csv_lines[0] | ||
|
||
|
||
def test_application_alteration_csv_output(application_alteration_csv_service): | ||
def test_application_alteration_csv_output( | ||
application_alteration_csv_service, settings | ||
): | ||
csv_lines = split_lines_at_semicolon( | ||
application_alteration_csv_service.get_csv_string() | ||
) | ||
|
||
settings.DEFAULT_SYSTEM_EMAIL = "[email protected]" | ||
|
||
alteration_1 = application_alteration_csv_service.get_alterations()[0] | ||
alteration_2 = application_alteration_csv_service.get_alterations()[1] | ||
|
||
|
@@ -409,10 +413,13 @@ def test_application_alteration_csv_output(application_alteration_csv_service): | |
csv_lines[1][9] | ||
== f'"{application_alteration_csv_service.get_account_number(alteration_1)}"' | ||
) | ||
assert ( | ||
csv_lines[1][10] | ||
== f'"{application_alteration_csv_service.get_handler_name(alteration_1)}"' | ||
|
||
handler_string = ( | ||
f'"{application_alteration_csv_service.get_handler_name(alteration_1)}"' | ||
) | ||
assert csv_lines[1][10] == handler_string | ||
|
||
assert settings.DEFAULT_SYSTEM_EMAIL in handler_string | ||
assert ( | ||
csv_lines[1][11] | ||
== f'"{application_alteration_csv_service.get_title(alteration_1)}"' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,6 +130,7 @@ | |
EMAIL_PORT=(int, 25), | ||
EMAIL_TIMEOUT=(int, 15), | ||
DEFAULT_FROM_EMAIL=(str, "Helsinki-lisä <[email protected]>"), | ||
DEFAULT_SYSTEM_EMAIL=(str, "[email protected]"), | ||
WKHTMLTOPDF_BIN=(str, "/usr/bin/wkhtmltopdf"), | ||
DUMMY_COMPANY_FORM_CODE=( | ||
int, | ||
|
@@ -556,3 +557,4 @@ | |
ENABLE_CLAMAV = env.bool("ENABLE_CLAMAV") | ||
CLAMAV_URL = env.str("CLAMAV_URL") | ||
ENABLE_AHJO_AUTOMATION = env.bool("ENABLE_AHJO_AUTOMATION") | ||
DEFAULT_SYSTEM_EMAIL = env.str("DEFAULT_SYSTEM_EMAIL") |