Skip to content

Test: Cover untested datetime micros/nanos converters - #4501

Open
prabhleen2317 wants to merge 1 commit into
apache:mainfrom
prabhleen2317:datetime-converter-test-coverage
Open

prabhleen2317 wants to merge 1 commit into
apache:mainfrom
prabhleen2317:datetime-converter-test-coverage

Conversation

@prabhleen2317

Copy link
Copy Markdown
Contributor

Summary

Adds unit tests for datetime helper functions in pyiceberg/utils/datetime.py
that previously had no coverage: micros_to_time, micros_to_timestamptz,
micros_to_hours, and the nanos_to_* family (timestamp, time, days,
months, years).

Closes #4500.

Test plan

  • make test PYTEST_ARGS="-k datetime" — 87 passed
  • ruff check / ruff format clean

Add unit tests for datetime helper functions that had no coverage:
micros_to_time, micros_to_timestamptz, micros_to_hours, and the
nanos_to_* family (timestamp, time, days, months, years). These power
the partition transforms and were previously untested.
@prabhleen2317

Copy link
Copy Markdown
Contributor Author

Hello @Fokko and @rambleraptor could you please review the changes I have made !

This branch has not been deployed

No deployments
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.

Missing unit test coverage for datetime micros/nanos converter helpers

1 participant