@@ -238,15 +238,15 @@ def check_for_consent_filtering_params(
238238 status : str ,
239239 status_active_response_yaml : str ,
240240 status_inactive_response_yaml : str ,
241- status_proposed_and_inactive_response_yaml : str ,
241+ status_proposed_and_active_response_yaml : str ,
242242) -> Response :
243243 """Checks the GET consent request status params and provides related response
244244
245245 Args:
246246 status (str): The status parameter supplied to the request
247247 status_active_response_yaml (str): The file to return when status param matches with 'active'
248248 status_inactive_response_yaml (str): The response to return when status param matches with 'inactive'
249- status_proposed_and_inactive_response_yaml (str): The file to return when status param matches with 'proposed,inactive'
249+ status_proposed_and_active_response_yaml (str): The file to return when status param matches with 'proposed,inactive'
250250
251251 Returns:
252252 response: Resultant Response object based on input.
@@ -255,9 +255,9 @@ def check_for_consent_filtering_params(
255255 return generate_response_from_example (status_active_response_yaml , 200 )
256256 elif status == "inactive" :
257257 return generate_response_from_example (status_inactive_response_yaml , 200 )
258- elif status == "proposed,inactive " or status == "inactive ,proposed" :
258+ elif status == "proposed,active " or status == "active ,proposed" :
259259 return generate_response_from_example (
260- status_proposed_and_inactive_response_yaml , 200
260+ status_proposed_and_active_response_yaml , 200
261261 )
262262 else :
263263 return generate_response_from_example (CONSENT__STATUS_PARAM_INVALID , 400 )
0 commit comments