(self)
| 124 | super().__init__(*args, **kwargs) |
| 125 | |
| 126 | def _populate_public_holidays(self): |
| 127 | # Bank Holidays Act 1873 |
| 128 | # The Employment of Females Act 1873 |
| 129 | # Factories Act 1894 |
| 130 | # Industrial Conciliation and Arbitration Act 1894 |
| 131 | # Labour Day Act 1899 |
| 132 | # Anzac Day Act 1920, 1949, 1956 |
| 133 | # New Zealand Day Act 1973 |
| 134 | # Waitangi Day Act 1960, 1976 |
| 135 | # Sovereign's Birthday Observance Act 1937, 1952 |
| 136 | # Holidays Act 1981, 2003 |
| 137 | |
| 138 | # New Year's Day. |
| 139 | self._add_observed(self._add_new_years_day("New Year's Day"), rule=SAT_SUN_TO_NEXT_MON_TUE) |
| 140 | self._add_observed( |
| 141 | # Day after New Year's Day. |
| 142 | self._add_new_years_day_two("Day after New Year's Day"), |
| 143 | rule=SAT_SUN_TO_NEXT_MON_TUE, |
| 144 | ) |
| 145 | |
| 146 | if self._year >= 1974: |
| 147 | feb_6 = self._add_holiday_feb_6( |
| 148 | # Waitangi Day. |
| 149 | "Waitangi Day" |
| 150 | if self._year >= 1977 |
| 151 | # New Zealand Day. |
| 152 | else "New Zealand Day" |
| 153 | ) |
| 154 | if self._year >= 2014: |
| 155 | self._add_observed(feb_6) |
| 156 | |
| 157 | if self._year >= 1921: |
| 158 | # Anzac Day. |
| 159 | apr_25 = self._add_anzac_day("Anzac Day") |
| 160 | if self._year >= 2014: |
| 161 | self._add_observed(apr_25) |
| 162 | |
| 163 | # Good Friday. |
| 164 | self._add_good_friday("Good Friday") |
| 165 | |
| 166 | # Easter Monday. |
| 167 | self._add_easter_monday("Easter Monday") |
| 168 | |
| 169 | # Sovereign's Birthday |
| 170 | if self._year >= 1902: |
| 171 | name = ( |
| 172 | # Queen's Birthday. |
| 173 | "Queen's Birthday" |
| 174 | if 1952 <= self._year <= 2022 |
| 175 | # King's Birthday. |
| 176 | else "King's Birthday" |
| 177 | ) |
| 178 | if self._year == 1952: |
| 179 | self._add_holiday_jun_2(name) # Elizabeth II |
| 180 | elif self._year >= 1938: |
| 181 | self._add_holiday_1st_mon_of_jun(name) # EII & GVI |
| 182 | elif self._year == 1937: |
| 183 | self._add_holiday_jun_9(name) # George VI |
nothing calls this directly
no test coverage detected