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

Add Ireland #152

Merged
merged 16 commits into from Dec 3, 2016
Merged

Add Ireland #152

merged 16 commits into from Dec 3, 2016

Conversation

gregn610
Copy link
Contributor

@gregn610 gregn610 commented Dec 2, 2016

For information, read and make sure you're okay with the CONTRIBUTING document.

  • Tests with a significant number of years to be tested for your calendar.
  • Docstrings for the Calendar class and specific methods.
  • Calendar country / label added to the README.rst file,
  • Changelog amended with a mention like: "Added <country> by @pseudo (#)"

Copy link
Member

@brunobord brunobord left a comment

Choose a reason for hiding this comment

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

You may need to add a few test to cover the conditional holidays (1974, 1977, 1994...) and fix the pep8 errors detected by flake8

@@ -4,7 +4,7 @@ CHANGELOG
master (unreleased)
-------------------

- Nothing changed yet.
- Add Ireland. thx @gregn610 ()
Copy link
Member

Choose a reason for hiding this comment

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

you may want to add the reference to your pull request (#152)

"Saint Patrick substitute"))

# Whit Monday
if year <= 1973:
Copy link
Member

Choose a reason for hiding this comment

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

Maybe you'd need to add a test to check that, before 1974, this day was added to the holidays

))

# May Day
if year >= 1994:
Copy link
Member

Choose a reason for hiding this comment

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

same as above, that be great to test that before 1994, this wasn't a holiday

days.append(self.get_june_holiday(year))
days.append(self.get_august_holiday(year))

if year >= 1977:
Copy link
Member

Choose a reason for hiding this comment

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

idem ; check before and after 1977.

self.assertIn(date(2015, 12, 28), holidays) # St. Stephen's day shift


class IrelandTest(GenericCalendarTest):
Copy link
Member

Choose a reason for hiding this comment

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

Probably a copy-paste error, you don't need this duplicate instance of IrelandTest ;o)

@brunobord
Copy link
Member

Don't give up! your contribution is close to be accepted, just a few fixes and it's going to be fine.

@brunobord
Copy link
Member

Excellent! welcome to workalendar, Ireland!

@brunobord brunobord merged commit 82f43fc into workalendar:master Dec 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants