Skip to content

Commit

Permalink
[Test] Add missing test
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-tessier committed Oct 31, 2022
1 parent 6f1b6f8 commit d5cecc9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions holiday_jp/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ class MyHolidayJp(HolidayJp):

self.assertEqual(datetime.date(year=2008, month=12, day=23), holidays[0].date_obj)

def test_between_error(self):
"""Check that dates have a correct range."""
with self.assertRaises(ValueError):
holidays = HolidayJp.between('2020-01-01', '2009-01-31')

def test_year_holidays(self):
"""Check that the year call is correct."""
# let's take 2019 as there's more holidays due to Era changes.
Expand Down

0 comments on commit d5cecc9

Please sign in to comment.