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

Improve coverage where it's possible #546

Closed
15 tasks done
brunobord opened this issue Sep 4, 2020 · 0 comments
Closed
15 tasks done

Improve coverage where it's possible #546

brunobord opened this issue Sep 4, 2020 · 0 comments
Assignees
Labels
small improvement Small steps, but nice to have
Projects

Comments

@brunobord
Copy link
Member

brunobord commented Sep 4, 2020

  • South Africa and the year 2001
  • Brazil: get_last_day_of_year_for_only_internal_bank_trans()
  • Canada (Nunavut shift)
  • Israel
  • Singapore
  • core (several lines)
  • Netherlands
  • Romania
  • New Zealand (two blocks)
  • astronomy.py
  • Russia
  • tests/__init__.py
  • tests/test_usa.py (several blocks, this is a known issue) won't fix
  • usa/core.py
  • usa/indiana.py
brunobord added a commit that referenced this issue Sep 4, 2020
@brunobord brunobord self-assigned this Sep 4, 2020
@brunobord brunobord added the small improvement Small steps, but nice to have label Sep 4, 2020
@brunobord brunobord added this to Warming up in Workalendar via automation Sep 4, 2020
@brunobord brunobord moved this from Warming up to Working in Workalendar Sep 4, 2020
brunobord added a commit that referenced this issue Sep 4, 2020
brunobord added a commit that referenced this issue Sep 4, 2020
refs #546

We had to include the year 2021, because it offered the case that was missing in the `get_hebrew_independence_day` method.
brunobord added a commit that referenced this issue Sep 11, 2020
Small refactor to trigger the KeyError a bit earlier.

refs #546
brunobord added a commit that referenced this issue Oct 9, 2020
brunobord added a commit that referenced this issue Oct 9, 2020
Fixed the uncovered special case of Queen's Day when it falls on SUN.

refs #546
brunobord added a commit that referenced this issue Oct 9, 2020
Fixed the uncovered special case of Queen's Day when it falls on SUN.

refs #546
brunobord added a commit that referenced this issue Oct 9, 2020
brunobord added a commit that referenced this issue Jan 15, 2021
- Small fixes in Netherlands School calendars (#619).
- New method available in `core` module: `Calendar.get_iso_week_date()` to find the weekday X of the week number Y (#619).
- Improve Netherlands coverage (#546, #619).
brunobord added a commit that referenced this issue Jan 15, 2021
- Small fixes in Netherlands School calendars (#619).
- New method available in `core` module: `Calendar.get_iso_week_date()` to find the weekday X of the week number Y (#619).
- Improve Netherlands coverage (#546, #619).
brunobord added a commit that referenced this issue Jan 15, 2021
This one is tricky: it's apparently a "coverage" issue related to the Python bytecode optimizer.

Ref: nedbat/coveragepy#198

Refs #546
brunobord added a commit that referenced this issue Jan 15, 2021
Covering cases when we're fetching the Labour day label

refs #546
brunobord added a commit that referenced this issue Jan 22, 2021
brunobord added a commit that referenced this issue Feb 5, 2021
brunobord added a commit that referenced this issue Feb 5, 2021
Workalendar automation moved this from Working to Done Feb 5, 2021
brunobord added a commit that referenced this issue Feb 19, 2021
**Major changes**

- API: New method available in `core` module: `Calendar.get_iso_week_date()` to find the weekday X of the week number Y (#619).
- Requirements: Replace pytz with `(backports.)zoneinfo`, thx to @eumiro (#614)
- Doc: Documented the different (in)compatibilities due to the use of `zoneinfo` (#614).

**Minor changes**

*Bugfix*

- Small fixes in Netherlands School calendars (#619).
- Temporary downgrade of `pyupgrade` to fix the `pyup_dirs`.

*Improving test coverage*

- Improve Netherlands coverage (#546, #619).
- Improve Russia coverage (#546).
- Improve USA calendar coverage by removing a method that wasn't used anyways (`get_washington_birthday_december()`). The method is implemented in both Indiana and Georgia State calendars, and is specific for each state, even if they look very similar (#546).
- Improve the `astronomy.py` module coverage (#546).
- Improve coverage for the `tests/__init__.py` module (#546). *Note:* system-dependant test branch (if Windows) won't be counted for coverage.
@brunobord brunobord mentioned this issue Feb 19, 2021
14 tasks
brunobord added a commit that referenced this issue Feb 19, 2021
**Major changes**

- API: New method available in `core` module: `Calendar.get_iso_week_date()` to find the weekday X of the week number Y (#619).
- Requirements: Replace pytz with `(backports.)zoneinfo`, thx to @eumiro (#614)
- Doc: Documented the different (in)compatibilities due to the use of `zoneinfo` (#614).

**Minor changes**

*Bugfixes*

- Small fixes in Netherlands School calendars (#619).
- Temporary downgrade of `pyupgrade` to fix the `pyup_dirs`.

*Improving test coverage*

- Improve Netherlands coverage (#546, #619).
- Improve Russia coverage (#546).
- Improve USA calendar coverage by removing a method that wasn't used anyways (`get_washington_birthday_december()`). The method is implemented in both Indiana and Georgia State calendars, and is specific for each state, even if they look very similar (#546).
- Improve the `astronomy.py` module coverage (#546).
- Improve coverage for the `tests/__init__.py` module (#546). *Note:* system-dependant test branch (if Windows) won't be counted for coverage.
brunobord added a commit that referenced this issue Feb 19, 2021
**Major changes**

- API: New method available in `core` module: `Calendar.get_iso_week_date()` to find the weekday X of the week number Y (#619).
- Requirements: Replace pytz with `(backports.)zoneinfo`, thx to @eumiro (#614)
- Doc: Documented the different (in)compatibilities due to the use of `zoneinfo` (#614).

**Minor changes**

*Bugfixes*

- Small fixes in Netherlands School calendars (#619).
- Temporary downgrade of `pyupgrade` to fix the `pyup_dirs`.

*Improving test coverage*

- Improve Netherlands coverage (#546, #619).
- Improve Russia coverage (#546).
- Improve USA calendar coverage by removing a method that wasn't used anyways (`get_washington_birthday_december()`). The method is implemented in both Indiana and Georgia State calendars, and is specific for each state, even if they look very similar (#546).
- Improve the `astronomy.py` module coverage (#546).
- Improve coverage for the `tests/__init__.py` module (#546). *Note:* system-dependant test branch (if Windows) won't be counted for coverage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
small improvement Small steps, but nice to have
Projects
Workalendar
  
Done/Closed/Published
Development

No branches or pull requests

1 participant