Skip to content

Commit

Permalink
removed duplicate test question
Browse files Browse the repository at this point in the history
  • Loading branch information
ramsharma-prog committed Jul 20, 2023
1 parent 6a7e1ea commit 4f49c22
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fsd_utils/mapping/application/application_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def format_radio_field(answer):
answer = answer.split("-")
formatted_answer = " ".join(answer).strip()
return formatted_answer
else:
else:
return answer

except Exception: # noqa
Expand Down
9 changes: 7 additions & 2 deletions tests/test_data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,12 @@ def test_get_remote_data_json_404(self, flask_test_client):
"title": "What funding are you applying for?",
"type": "list",
},
{'key': 'NxVqXd', 'title': 'What funding are you applying for?', 'type': 'list', 'answer': 'capital'}
{
"key": "NxVqXd",
"title": "What funding are you applying?",
"type": "list",
"answer": "capital",
},
],
"question": "What funding are you applying for?",
},
Expand Down Expand Up @@ -221,7 +226,7 @@ def test_get_remote_data_json_404(self, flask_test_client):
"questions_answers": {
"funding-required-ns": {
"What funding are you applying for?": "both revenue and capital",
"What funding are you applying for?": "capital",
"What funding are you applying?": "capital",
"Both revenue and capital": "4020",
"Revenue for 1 April 2024 to 31 March 2025": "4020",
"Testing hyphen in field type text": "This-is-a-type-text-answer",
Expand Down

0 comments on commit 4f49c22

Please sign in to comment.