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

Custom datetime converter #4

Merged
merged 4 commits into from
Mar 13, 2024
Merged

Custom datetime converter #4

merged 4 commits into from
Mar 13, 2024

Conversation

chrismostert
Copy link
Contributor

Adds a custom XmlDateTime converter to fix the fractional_seconds being left out when they are exactly 0.
See #3 and tefra/xsdata#917

Additionally, added a Github action so that tests on EML files are ran automatically without having to include the data in this repository. Zip files specified in testfiles.txt are downloaded and unzipped by the Github action, after which pytest can run.

@chrismostert chrismostert force-pushed the custom_datetime_converter branch from ce90aa9 to 934e324 Compare March 11, 2024 15:28
@chrismostert chrismostert requested a review from praseodym March 12, 2024 12:11
Copy link
Contributor

@praseodym praseodym left a comment

Choose a reason for hiding this comment

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

Nice work!

You could consider speeding up the tests by running them in parallel with e.g. pytest-xdist.

@chrismostert chrismostert merged commit 84e7b06 into main Mar 13, 2024
1 check passed
@chrismostert chrismostert deleted the custom_datetime_converter branch March 13, 2024 08:53
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