diff --git a/src/pyluach/dates.py b/src/pyluach/dates.py index 88190a6..7f136ed 100644 --- a/src/pyluach/dates.py +++ b/src/pyluach/dates.py @@ -204,8 +204,8 @@ def _day_of_holiday(self, israel, hebrew=False): name = utils._festival_string(self, israel) if name is not None: holiday = utils.Days(name) - # if holiday is utils.Days.SHAVUOS and israel: - # return '' + if holiday is utils.Days.SHAVUOS and israel: + return '' first_day = utils._first_day_of_holiday(holiday) if first_day: day = HebrewDate(self.year, *first_day) - self + 1 diff --git a/tests/test_dates.py b/tests/test_dates.py index 6a81cb9..239fefb 100644 --- a/tests/test_dates.py +++ b/tests/test_dates.py @@ -259,9 +259,9 @@ def test_festival(self): def test_day_of_holiday(self): assert HebrewDate(5783, 12, 14)._day_of_holiday(israel=False) == '' - # shavuos = HebrewDate(5783, 3, 6) - # assert shavuos.holiday(prefix_day=True) == '1 Shavuos' - # assert shavuos.holiday(israel=True, prefix_day=True) == 'Shavuos' + shavuos = HebrewDate(5783, 3, 6) + assert shavuos.holiday(prefix_day=True) == '1 Shavuos' + assert shavuos.holiday(israel=True, prefix_day=True) == 'Shavuos' def test_to_pydate():