python-holidays icon indicating copy to clipboard operation
python-holidays copied to clipboard

Fix observed holiday for christmas and boxing day canada

Open bkthomps opened this issue 2 years ago • 4 comments

For Canada, Christmas and Boxing day were now showing the non-observed day, unlike the other holidays for Canada.

bkthomps avatar Sep 16 '22 05:09 bkthomps

Could you change the coveralls failure threshold to 0.1% or something instead of 0% please?

image

bkthomps avatar Sep 16 '22 05:09 bkthomps

Pull Request Test Coverage Report for Build 3065597678

  • 4 of 4 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.0002%) to 99.602%

Totals Coverage Status
Change from base Build 3061679434: -0.0002%
Covered Lines: 6545
Relevant Lines: 6558

💛 - Coveralls

coveralls avatar Sep 16 '22 05:09 coveralls

Hi @bkthomps , thank you for your contribution. Regarding your last request (failure threshold) it is in fact meant to keep coverage level at the pre-existing state, so that's why we require a 0% loss to pass checks ( = all reviewed / added code should be covered). Could you please review your PR to integrate unit tests for all your changes? Please let me know if you are experiencing inconsistencies in the coverage calculation and check, thank you!

dr-prodigy avatar Sep 16 '22 07:09 dr-prodigy

@dr-prodigy the test coverage is still on those lines, but since I removed 2 lines it's trivially less.

The coverage decrease is -4.0e-05% so -0.00004% less. Can we make the minimum some small delta at least to prevent this case? Like 0.01% or something? When I fixed a typo for Cuba it was -0.0% less and was failing the checks, so a small delta would fix this.

bkthomps avatar Sep 16 '22 17:09 bkthomps

Hi @bkthomps, thank you for your notes and suggestions.. I've updated the coverage threshold and merged your PR in beta. KUTGW

dr-prodigy avatar Oct 16 '22 06:10 dr-prodigy