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

JSON and YAML export_set fixes #51

Merged
merged 4 commits into from
Jun 21, 2024
Merged

Conversation

SunnyR
Copy link
Member

@SunnyR SunnyR commented Jun 21, 2024

Summary

  • Fixes for missing attributes on the class.
  • [json] Use json.dumps() function directly in export_set().
  • [yaml] Use yaml.dump() and yaml.safe_dump() function directly in export_set().
  • [yaml] Dropped keyword argument ordered as plain dicts are already ordered since Python 3.6 - Removed OrderedDict usage jazzband/tablib#581.
Related Links
Ready for QA Checklist
  • Code Review
  • Dev QA
  • Rebase and Squash

@SunnyR SunnyR self-assigned this Jun 21, 2024
@SunnyR SunnyR requested a review from kgojmerac June 21, 2024 15:02
Copy link

@kgojmerac kgojmerac left a comment

Choose a reason for hiding this comment

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

+1

Fixes look ok to me, added one comment where some reordering may be occurring but otherwise nothing jumped out.

The new tests added to cover the errors hit in the export_set functions look adequate to me for new coverage for validating the bug fix, so I don't think we need to add any additional tests right now.

multi_import/formats.py Show resolved Hide resolved
@SunnyR SunnyR merged commit 7b73f6a into master Jun 21, 2024
1 check passed
@SunnyR SunnyR deleted the fix/pie-1773/library-export branch June 21, 2024 23:07
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