Update Uganda holidays: add 2026 general elections public holidays - #3701
Update Uganda holidays: add 2026 general elections public holidays#3701uttam12331 wants to merge 3 commits into
Conversation
President Museveni declared 15 and 16 January 2026 public holidays for the general (presidential and parliamentary) elections, by Legal Notice under the Public Holidays Act. Add them via a new UgandaStaticHolidays class. Signed-off-by: uttam12331 <uttam12331@users.noreply.github.com>
Summary by CodeRabbit
WalkthroughUganda now supports static “General elections” holidays on January 15 and 16, 2026. The country calendar loads the Uganda-specific configuration, with corresponding test assertions and snapshot entries. ChangesUganda static holiday support
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #3701 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 321 321
Lines 19320 19325 +5
Branches 2477 2477
=========================================
+ Hits 19320 19325 +5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tests/countries/test_uganda.py`:
- Around line 26-31: Update test_special_holidays to retain assertions that
“General elections” is absent for 1963–2025 and 2027–2049, while preserving the
existing 2026-01-15 and 2026-01-16 assertions.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: b7d74dfd-09c3-4f4f-b129-df66dbfc3104
📒 Files selected for processing (3)
holidays/countries/uganda.pysnapshots/countries/UG_COMMON.jsontests/countries/test_uganda.py
PPsyrius
left a comment
There was a problem hiding this comment.
Last minute capitalization fixes
| # General elections. | ||
| general_elections = "General elections" |
There was a problem hiding this comment.
IMO Elections should've been capitalized
| # General elections. | |
| general_elections = "General elections" | |
| # General Elections. | |
| general_elections = "General Elections" |
| "2026-01-15": "General elections", | ||
| "2026-01-16": "General elections", |
There was a problem hiding this comment.
| "2026-01-15": "General elections", | |
| "2026-01-16": "General elections", | |
| "2026-01-15": "General Elections", | |
| "2026-01-16": "General Elections", |
|
|
||
| def test_special_holidays(self): | ||
| self.assertHolidayName( | ||
| "General elections", |
There was a problem hiding this comment.
| "General elections", | |
| "General Elections", |
| """Uganda special holidays. | ||
|
|
||
| References: | ||
| * [General elections 2026](https://web.archive.org/web/20260112000421/https://eagle.co.ug/2026/01/10/museveni-declares-jan-15-16-as-public-holidays-for-general-elections/) |
There was a problem hiding this comment.
| * [General elections 2026](https://web.archive.org/web/20260112000421/https://eagle.co.ug/2026/01/10/museveni-declares-jan-15-16-as-public-holidays-for-general-elections/) | |
| * [General Elections 2026](https://web.archive.org/web/20260112000421/https://eagle.co.ug/2026/01/10/museveni-declares-jan-15-16-as-public-holidays-for-general-elections/) |



Proposed change
President Museveni declared 15 and 16 January 2026 public holidays to allow citizens to take part in Uganda's 2026 general (presidential and parliamentary) elections, by Legal Notice under the Public Holidays Act.
Adds them via a new
UgandaStaticHolidaysclass (Uganda had noStaticHolidaysgroup before).Source
Checklist
2026-01-15and2026-01-16= "General elections"; absent all other years.tests/countries/test_uganda.pypasses (23 passed);ruffclean.