Skip to content

Datacite.20250422#171

Merged
seasidesparrow merged 3 commits intoadsabs:mainfrom
seasidesparrow:datacite.20250422
Apr 30, 2025
Merged

Datacite.20250422#171
seasidesparrow merged 3 commits intoadsabs:mainfrom
seasidesparrow:datacite.20250422

Conversation

@seasidesparrow
Copy link
Copy Markdown
Member

This PR removes the DataCite parser's requirement of kernels -3 and -4: the parser can be used with kernel-2 as well. Unit tests with kernel-2.0/2 are included.

 	modified:   adsingestp/parsers/datacite.py
 	modified:   adsingestp/parsers/datacite.py
 	new file:   tests/stubdata/input/datacite-metadata-sample-v2.0.xml
 	new file:   tests/stubdata/input/datacite-ornldaac-kernel2.2-0010.xml
 	new file:   tests/stubdata/output/datacite-metadata-sample-v2.0.json
 	new file:   tests/stubdata/output/datacite-ornldaac-kernel2.2-0010.json
 	modified:   tests/test_datacite.py
 	modified:   tests/stubdata/input/datacite-ornldaac-kernel2.2-0010.xml
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.47%. Comparing base (910dd08) to head (af03de0).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #171      +/-   ##
==========================================
+ Coverage   91.45%   91.47%   +0.02%     
==========================================
  Files          27       27              
  Lines        3193     3189       -4     
==========================================
- Hits         2920     2917       -3     
+ Misses        273      272       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@seasidesparrow seasidesparrow merged commit f0a2725 into adsabs:main Apr 30, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants