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 ukraine.py #32

Merged
merged 5 commits into from
Dec 24, 2024
Merged

Update ukraine.py #32

merged 5 commits into from
Dec 24, 2024

Conversation

ArcLightSlavik
Copy link

refs #

Ukraine had a lot of changes with holidays, most of which are described here: https://en.wikipedia.org/wiki/Public_holidays_in_Ukraine

list:

  • Victory day from May 9 to May 8 with a name change
  • Statehood day added
  • Defenders day moved
  • Old orthodox day removed

For information, read and make sure you're okay with the Contributing guidelines.

  • Tests with a significant number of years to be tested for your calendar.
  • Docstrings for the Calendar class and specific methods.
  • Use the workalendar.registry_tools.iso_register decorator to register your new calendar using ISO codes (optional).
  • Calendar country / label added to the README.md file.
  • Changelog amended with a mention like: "Added <country> by @pseudo (#)". Note Please do NOT change the version number here. It's the project maintainers' duty.
  • Tests with a significant number of years to be tested for your calendar.
  • Changelog amended with a mention describing your changes. Note Please do NOT change the version number here. It's the project maintainers' duty.

@ArcLightSlavik
Copy link
Author

@jaraco

@jaraco
Copy link
Owner

jaraco commented Sep 30, 2024

Should these changes include tests to capture the new expectations?

@jaraco
Copy link
Owner

jaraco commented Sep 30, 2024

I see some failed tests seemingly due to the changes:

FAILED calendra/tests/test_europe.py::UkraineTest::test_ical_export - AttributeError: 'int' object has no attribute 'year'
FAILED calendra/tests/test_europe.py::UkraineTest::test_january_1st - AttributeError: 'int' object has no attribute 'year'
FAILED calendra/tests/test_europe.py::UkraineTest::test_may_1st_label - AttributeError: 'int' object has no attribute 'year'
FAILED calendra/tests/test_europe.py::UkraineTest::test_year_2015 - AttributeError: 'int' object has no attribute 'year'
FAILED calendra/tests/test_europe.py::UkraineTest::test_year_2016 - AttributeError: 'int' object has no attribute 'year'
FAILED calendra/tests/test_europe.py::UkraineTest::test_year_2017 - AttributeError: 'int' object has no attribute 'year'
FAILED calendra/tests/test_europe.py::UkraineTest::test_year_2018 - AttributeError: 'int' object has no attribute 'year'

Consider running tox in the checkout to validate the behavior.

Viacheslav Leskiv added 2 commits October 7, 2024 02:59
@ArcLightSlavik
Copy link
Author

should be fine now, fixed and added tests for 23/24 @jaraco

Screenshot 2024-10-07 at 03 23 47

@jaraco
Copy link
Owner

jaraco commented Dec 24, 2024

Sorry for the delay in reviewing. I've been slammed since starting my new job. Let's get this out.

@jaraco jaraco merged commit 1f03a23 into jaraco:main Dec 24, 2024
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.

2 participants