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
Add South African 2019 National Elections as holiday #350
Add South African 2019 National Elections as holiday #350
Conversation
|
||
# variable days | ||
self.assertIn(date(2019, 5, 8), holidays) # 2019 National Elections | ||
self.assertNotIn(date(2017, 5, 8), holidays) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hem... no it won't work like this. You're fetching the "2019" holidays, and of course, the 2017-05-08 is not in the holiday set.
Let me suggest something:
self.assertNotIn(date(2017, 5, 8), holidays) | |
holidays_2017 = self.cal.holidays_set(2017) | |
self.assertNotIn(date(2017, 5, 8), holidays_2017) |
@RichardOB |
Hi Bruno, That would be great! Sorry that I haven't addressed your latest comment and left you hanging for a while. |
Heh. don't worry, it's okay. We all have lives :o) I'll keep you updated. |
**WARNING**: This release will be the last one to support Python 3.4, which has [reached its End of Life and has been retired](https://www.python.org/dev/peps/pep-0429/#release-schedule). Please upgrade. **Added calendar** - Added California specific calendars: California Education, Berkeley, San Francisco, West Hollywood (#215). **Fixes** - Added a few refactors and tests for Australia Capital Territory holiday named "Family & Community Day", that lasted from 2007 to 2017 (#25). - Added South African 2019 National Elections as holiday (#350), by @RichardOB.
Version 4.4.0 has been released and is available at PyPI, grab it while it's hot! |
refs #
Added May 8th as a South African Holiday for the 2019 National Elections. https://en.wikipedia.org/wiki/2019_South_African_general_election