Skip to content

Commit

Permalink
test update - bug fix (API response)
Browse files Browse the repository at this point in the history
  • Loading branch information
ariannamorettj committed Mar 31, 2024
1 parent 0b1600b commit 2900764
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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*
.DS_Store*
report_output_folder/
2 changes: 1 addition & 1 deletion test/get_pub_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
2 changes: 1 addition & 1 deletion test/idm_orcid_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2900764

Please sign in to comment.