From 29007644fcd675d84ae4dfbbbcdead9d3e7745eb Mon Sep 17 00:00:00 2001 From: ariannamorettj Date: Mon, 1 Apr 2024 01:06:06 +0200 Subject: [PATCH] test update - bug fix (API response) --- .gitignore | 3 ++- test/get_pub_test.py | 2 +- test/idm_orcid_test.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index fd692d9..83706bc 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,5 @@ test/openaire_process/1alt_tar_sample/part2_decompr_zip_dir/ test/openaire_process/2_tar_sample/part0_decompr_zip_dir/ test/openaire_process/2_tar_sample/part1_decompr_zip_dir/ cache.json -.DS_Store* \ No newline at end of file +.DS_Store* +report_output_folder/ \ No newline at end of file diff --git a/test/get_pub_test.py b/test/get_pub_test.py index 5648d81..c5fa56e 100644 --- a/test/get_pub_test.py +++ b/test/get_pub_test.py @@ -69,7 +69,7 @@ def test_get_pub_cnki(self): e_p_doi_5 = ExtractPublisherDOI({}) cnki_doi = "10.13336/j.1003-6520.hve.20160308018" pub_c = e_p_doi_5.extract_publishers_v(cnki_doi) - expected = "CNKI Publisher (unspecified)" + expected = "unidentified" self.assertEqual(pub_c, expected) diff --git a/test/idm_orcid_test.py b/test/idm_orcid_test.py index fdd8720..cab2459 100644 --- a/test/idm_orcid_test.py +++ b/test/idm_orcid_test.py @@ -75,7 +75,7 @@ def test_exists(self): with self.subTest(msg="get_extra_info=True, allow_extra_api=None"): orcid_manager = ORCIDManager() output = orcid_manager.exists(self.valid_orcid_2, get_extra_info=True, allow_extra_api=None) - expected_output = (True, {'id': '0000-0001-5506-523X', 'valid': True, 'family_name': 'Shotton', 'given_name': 'David', 'email': "", 'external_identifiers': {}, 'submission_date': '2012-10-31', 'update_date': '2023-09-23'}) + expected_output = (True, {'id': '0000-0001-5506-523X', 'valid': True, 'family_name': 'Shotton', 'given_name': 'David', 'email': "", 'external_identifiers': {}, 'submission_date': '2012-10-31', 'update_date': '2024-03-19'}) self.assertEqual(output, expected_output) with self.subTest(msg="get_extra_info=False, allow_extra_api=None"): orcid_manager = ORCIDManager()