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

Fixes #567 - Implement ods import #568

Merged
merged 2 commits into from
Oct 29, 2023
Merged

Conversation

claudep
Copy link
Contributor

@claudep claudep commented Oct 27, 2023

No description provided.

@codecov
Copy link

codecov bot commented Oct 27, 2023

Codecov Report

Merging #568 (83034c8) into master (0f0ddf6) will increase coverage by 0.29%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #568      +/-   ##
==========================================
+ Coverage   92.11%   92.40%   +0.29%     
==========================================
  Files          28       28              
  Lines        2827     2938     +111     
==========================================
+ Hits         2604     2715     +111     
  Misses        223      223              
Files Coverage Δ
src/tablib/formats/_ods.py 99.23% <100.00%> (+1.05%) ⬆️
tests/test_tablib.py 98.84% <100.00%> (+0.04%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

HISTORY.md Outdated Show resolved Hide resolved
saved_registry = registry._formats.copy()
try:
del registry._formats['ods']
msg = (r"The 'ods' format is not available. You may want to install the "
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
msg = (r"The 'ods' format is not available. You may want to install the "
msg = (r"The ODS format is not available. You may want to install the "

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we change here, then we must also change the generation of error message in Registry.get_format (replacing '{key}' by {key.upper()}). Would you suggest that? In this PR?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice but not essential! This or another is fine :)

src/tablib/formats/_ods.py Show resolved Hide resolved
src/tablib/formats/_ods.py Show resolved Hide resolved
src/tablib/formats/_ods.py Outdated Show resolved Hide resolved
@claudep claudep force-pushed the ods_import branch 2 times, most recently from 11746fc to ce04281 Compare October 28, 2023 13:05
@claudep
Copy link
Contributor Author

claudep commented Oct 28, 2023

@hugovk Thanks for pushing me to add more tests, I also had to substantially change the code for more corner cases.

src/tablib/formats/_ods.py Outdated Show resolved Hide resolved
src/tablib/formats/_ods.py Outdated Show resolved Hide resolved
@claudep claudep merged commit c0e52cf into jazzband:master Oct 29, 2023
21 checks passed
@claudep claudep deleted the ods_import branch October 29, 2023 19:34
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