-
Notifications
You must be signed in to change notification settings - Fork 221
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
Refactor get_weekend_days to use WEEKEND_DAYS more intelligently #191
Conversation
…ne the weekend, otherwise the calendar author needs to implement get_weekend_days as before.
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.
I think that you could amend your pull-request with a changelog entry, as specified in the github pull-request template
- Changelog amended with a mention describing your changes.
@@ -82,6 +82,12 @@ def test_year_2013(self): | |||
self.assertIn(date(2013, 10, 18), holidays) # eid al adha | |||
self.assertIn(date(2013, 12, 18), holidays) # National Day | |||
|
|||
def test_weekend(self): |
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.
is this test failing without your patch? I'm unsure...
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.
never mind, you're right.
As soon as the changelog will be amended in your PR and merged, I may start to work on a minor refactor, and adding tests on the test_core
module, but don't worry, your patch is an excellent step in the right direction!
@brunobord Apologies for missing that, my bad. |
Congrats for your first contribution! |
If WEEKEND_DAYS is provided in the calendar class then use it to define the weekend, otherwise the calendar author needs to implement get_weekend_days as before.