From d5cecc9bd5f1da435bcf930d886e51429bb6e4dd Mon Sep 17 00:00:00 2001 From: tessier Date: Mon, 31 Oct 2022 12:25:42 +0900 Subject: [PATCH] [Test] Add missing test --- holiday_jp/test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/holiday_jp/test.py b/holiday_jp/test.py index 7c8f089..2319e49 100644 --- a/holiday_jp/test.py +++ b/holiday_jp/test.py @@ -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.