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

Update Thailand holidays in 2025 #2081

Merged
merged 8 commits into from
Oct 29, 2024
Merged

Conversation

PPsyrius
Copy link
Collaborator

@PPsyrius PPsyrius commented Oct 26, 2024

Proposed change

Update Thailand holidays in 2025, as well as refractoring Thailand testcases to modern standards.

  • "Royal Ploughing Ceremony" date for 2025 is now confirmed as May 9, 2025.
  • SUN-MON-TUE format for "Songkran" holidays do indeed has in-lieu observance on WED as seen in 2014 and 2025, and has been fixed accordingly.

Type of change

  • New country/market holidays support (thank you!)
  • Supported country/market holidays update (calendar discrepancy fix, localization)
  • Existing code/documentation/test/process quality improvement (best practice, cleanup, refactoring, optimization)
  • Dependency update (version deprecation/pin/upgrade)
  • Bugfix (non-breaking change which fixes an issue)
  • Breaking change (a code change causing existing functionality to break)
  • New feature (new holidays functionality in general)

Checklist

  • I've followed the contributing guidelines
  • I've run make pre-commit, it didn't generate any changes
  • I've run make test, all tests passed locally

Copy link

codecov bot commented Oct 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (b2e6837) to head (dc98597).
Report is 1 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff            @@
##               dev     #2081   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          191       191           
  Lines        11547     11539    -8     
  Branches      1744      1740    -4     
=========================================
- Hits         11547     11539    -8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@PPsyrius PPsyrius requested a review from KJhellico October 26, 2024 11:57
@KJhellico
Copy link
Collaborator

KJhellico commented Oct 26, 2024

In L614:

            Thailand(categories=GOVERNMENT, years=range(1960, 2024)),

everything works correctly (due to auto-expand), but for accuracy:

            Thailand(categories=GOVERNMENT, years=range(1960, 2026)),

Or maybe better to refactor this test with self.assertHolidayName()?

@PPsyrius
Copy link
Collaborator Author

@KJhellico I ended up refactoring all Thailand test cases to modern standards, so additional reviews will be needed here.

Copy link
Collaborator

@KJhellico KJhellico left a comment

Choose a reason for hiding this comment

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

I think I've diligently reviewed the tests 😉, and here are some suggestions:

tests/countries/test_thailand.py Outdated Show resolved Hide resolved
tests/countries/test_thailand.py Outdated Show resolved Hide resolved
tests/countries/test_thailand.py Outdated Show resolved Hide resolved
tests/countries/test_thailand.py Outdated Show resolved Hide resolved
tests/countries/test_thailand.py Outdated Show resolved Hide resolved
tests/countries/test_thailand.py Outdated Show resolved Hide resolved
tests/countries/test_thailand.py Outdated Show resolved Hide resolved
tests/countries/test_thailand.py Show resolved Hide resolved
tests/countries/test_thailand.py Outdated Show resolved Hide resolved
tests/countries/test_thailand.py Outdated Show resolved Hide resolved
PPsyrius and others added 3 commits October 28, 2024 09:53
Co-authored-by: ~Jhellico <KJhellico@users.noreply.github.com>
Co-Authored-By: ~Jhellico <KJhellico@users.noreply.github.com>
Co-Authored-By: ~Jhellico <KJhellico@users.noreply.github.com>
Copy link

@PPsyrius PPsyrius requested a review from KJhellico October 28, 2024 09:12
Copy link
Collaborator

@KJhellico KJhellico left a comment

Choose a reason for hiding this comment

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

LGTM! 👍

Copy link
Collaborator

@arkid15r arkid15r left a comment

Choose a reason for hiding this comment

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

LGTM

@arkid15r arkid15r enabled auto-merge October 29, 2024 17:33
@arkid15r arkid15r added this pull request to the merge queue Oct 29, 2024
Merged via the queue into vacanza:dev with commit 684d7b7 Oct 29, 2024
29 checks passed
@PPsyrius PPsyrius deleted the update_th_holidays branch October 29, 2024 18:35
@arkid15r arkid15r mentioned this pull request Nov 4, 2024
mstuttgart pushed a commit to multidadosti-erp/python-holidays that referenced this pull request Nov 18, 2024
Co-authored-by: ~Jhellico <KJhellico@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants