Skip to content

Commit fc0cef0

Browse files
committed
Rename test method
1 parent 9bb4862 commit fc0cef0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit/controllers/test_party_controller.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ def test_get_case_list_for_respondent_todo(self, get_collection_instrument):
395395
self.assertEqual(list(survey_list_details_for_party), expected_response)
396396

397397
@patch("frontstage.controllers.party_controller.RedisCache.get_collection_instrument")
398-
def test_get_survey_list_details_for_party_without_enrolments(self, get_collection_instrument):
398+
def test_get_case_list_for_respondents_without_enrolments(self, get_collection_instrument):
399399
# Given party, collection instrument and case (lower down) are mocked
400400
get_collection_instrument.side_effect = [{"type": "SEFT"}, {"type": "EQ"}, {"type": "EQ"}, {"type": "EQ"}]
401401

@@ -408,8 +408,8 @@ def test_get_survey_list_details_for_party_without_enrolments(self, get_collecti
408408
"frontstage.controllers.case_controller.get_cases_for_list_type_by_party_id",
409409
_get_case_return_value_by_business_id,
410410
):
411-
# when get_survey_list_details_for_party is called
412-
survey_list_details_for_party = get_survey_list_details_for_party(
411+
# when get_case_list_for_respondents is called
412+
survey_list_details_for_party = get_case_list_for_respondent(
413413
[],
414414
"todo",
415415
None,

0 commit comments

Comments
 (0)