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

Fix DateTimeType tests #17764

Merged
merged 4 commits into from
Nov 20, 2024
Merged

Fix DateTimeType tests #17764

merged 4 commits into from
Nov 20, 2024

Conversation

jlaur
Copy link
Contributor

@jlaur jlaur commented Nov 18, 2024

This refactors a few tests that assume the time-zone being put into a DateTimeType will be the same as returned from getZonedDateTime() or used by format(). Also fixes a few tests mixing UTC and system time-zone.

These assumptions are still valid now, but if openhab/openhab-core#3583 is merged, they no longer will be. Therefore, this PR needs to be merged at latest at the same time to not break the build, but can be merged already now. Verifying these assumptions in addon tests provide no real value - this belongs to the core tests related to DateTimeType.

Prerequisite for openhab/openhab-core#3583
Also related to #17725 which simplifies DateTimeType logic if openhab/openhab-core#3583 is merged

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Copy link
Member

@holgerfriedrich holgerfriedrich left a comment

Choose a reason for hiding this comment

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

LGTM for KNX.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Copy link
Contributor

@lsiepel lsiepel left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM

@lsiepel lsiepel merged commit b4fb5a1 into openhab:main Nov 20, 2024
5 checks passed
@lsiepel lsiepel added this to the 4.3 milestone Nov 20, 2024
@jlaur jlaur deleted the datetimetype-tests branch November 21, 2024 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants