This repository has been archived by the owner on Nov 29, 2024. It is now read-only.
generated from communitiesuk/funding-service-design-TEMPLATE
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #239 from communitiesuk/add-cyp-mapping-report-for…
…-feedback-report Added CYP report mappings
- Loading branch information
Showing
5 changed files
with
65 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from config.key_report_mappings.model import FormMappingItem | ||
from config.key_report_mappings.model import KeyReportMapping | ||
|
||
CYP_R1_KEY_REPORT_MAPPING = KeyReportMapping( | ||
round_id="888aae3d-7e2c-4523-b9c1-95952b3d1644", | ||
mapping=[ | ||
FormMappingItem( | ||
form_name="applicant-information-cyp", | ||
key="BKOHaM", | ||
return_field="applicant_email", | ||
), | ||
FormMappingItem( | ||
form_name="about-your-organisation-cyp", | ||
key="JbmcJE", | ||
return_field="organisation_name", | ||
), | ||
], | ||
) |
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 |
---|---|---|
|
@@ -383,6 +383,16 @@ def test_extract_postcode(input_str, expected_output): | |
{ | ||
"language": "en", | ||
"forms": [ | ||
{ | ||
"name": "applicant-information-cof-r3-w2", | ||
"questions": [ | ||
{ | ||
"fields": [ | ||
{"key": "NlHSBg", "answer": "[email protected]"}, | ||
] | ||
} | ||
], | ||
}, | ||
{ | ||
"name": "organisation-information-cof-r3-w2", | ||
"questions": [ | ||
|
@@ -441,6 +451,7 @@ def test_extract_postcode(input_str, expected_output): | |
}, | ||
{ | ||
"eoi_reference": "Ref1234", | ||
"applicant_email": "[email protected]", | ||
"organisation_name": "OrgName", | ||
"organisation_type": "Non-Profit", | ||
"asset_type": "Building", | ||
|