def test_update_user_notes_calls_user_client_with_expected_values( self, mock_detection_list_user_service, mock_departing_employee_service, mock_high_risk_employee_service, ): client = DetectionListsClient( mock_detection_list_user_service, mock_departing_employee_service, mock_high_risk_employee_service, ) client.update_user_notes(TEST_USER_ID, "newnotes") mock_detection_list_user_service.update_notes.assert_called_once_with( TEST_USER_ID, "newnotes")
def test_update_user_notes_returns_response( self, mock_detection_list_user_service, mock_departing_employee_service, mock_high_risk_employee_service, ): client = DetectionListsClient( mock_detection_list_user_service, mock_departing_employee_service, mock_high_risk_employee_service, ) response = client.update_user_notes(TEST_USER_ID, "newnotes") assert response