Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jats email problem iop.20250117 #159

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

seasidesparrow
Copy link
Member

This patch addresses an issue where the _fix_email function was receiving emails in list format and trying to parse them as strings, generating an exception.

This also includes a fix to suppress the MarkupResemblesLocatorWarning message from bs4

 	modified:   adsingestp/parsers/jats.py
 	new file:   tests/stubdata/input/jats_iop_list_embedded_email.xml
 	new file:   tests/stubdata/output/jats_iop_list_embedded_email.json
 	modified:   tests/test_jats.py
 	modified:   adsingestp/parsers/base.py
@codecov-commenter
Copy link

codecov-commenter commented Jan 17, 2025

Codecov Report

Attention: Patch coverage is 80.95238% with 4 lines in your changes missing coverage. Please review.

Project coverage is 91.36%. Comparing base (59b6657) to head (b07a609).

Files with missing lines Patch % Lines
adsingestp/parsers/jats.py 77.77% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #159      +/-   ##
==========================================
- Coverage   91.42%   91.36%   -0.06%     
==========================================
  Files          25       25              
  Lines        2974     2989      +15     
==========================================
+ Hits         2719     2731      +12     
- Misses        255      258       +3     

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

 	modified:   adsingestp/parsers/base.py
 	modified:   adsingestp/parsers/jats.py
 	modified:   tests/stubdata/input/jats_iop_list_embedded_email.xml
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.

2 participants