diff --git a/cdci_data_analysis/analysis/drupal_helper.py b/cdci_data_analysis/analysis/drupal_helper.py index 4b4e46e0..f0806ed4 100644 --- a/cdci_data_analysis/analysis/drupal_helper.py +++ b/cdci_data_analysis/analysis/drupal_helper.py @@ -1559,6 +1559,7 @@ def resolve_name(local_name_resolver_url: str, external_name_resolver_url: str, resolved_obj['RA'] = float(ra_tag.text) resolved_obj['DEC'] = float(dec_tag.text) resolved_obj['entity_portal_link'] = entities_portal_url.format(quoted_name) + resolved_obj['message'] = f'{name} successfully resolved' try: Simbad.add_votable_fields("otype") diff --git a/tests/test_server_basic.py b/tests/test_server_basic.py index 26a21e9a..192d7141 100644 --- a/tests/test_server_basic.py +++ b/tests/test_server_basic.py @@ -2737,6 +2737,7 @@ def test_source_resolver(dispatcher_live_fixture_with_gallery, dispatcher_test_c assert 'entity_portal_link' in resolved_obj assert 'object_ids' in resolved_obj assert 'object_type' in resolved_obj + assert 'message' in resolved_obj assert resolved_obj['name'] == source_to_resolve.replace('_', ' ') assert resolved_obj['entity_portal_link'] == dispatcher_test_conf_with_gallery["product_gallery_options"]["entities_portal_url"]\ @@ -2784,6 +2785,7 @@ def test_source_resolver_invalid_local_resolver(dispatcher_live_fixture_with_gal assert 'entity_portal_link' in resolved_obj assert 'object_ids' in resolved_obj assert 'object_type' in resolved_obj + assert 'message' in resolved_obj assert resolved_obj['name'] == source_to_resolve.replace('_', ' ') assert resolved_obj['entity_portal_link'] == dispatcher_test_conf_with_gallery_invalid_local_resolver["product_gallery_options"]["entities_portal_url"]\