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

Extend base `common::TestCase` with category specific methods

Open arkid15r opened this issue 10 months ago • 2 comments

Describe the solution you'd like

Extend entity test case with category specific methods to simplify test cases similar to https://github.com/vacanza/holidays/blob/72d70ef9c310b55de0fe9c6952fc439a4306d624/tests/countries/test_taiwan.py#L25

  • update TestCase::setUpClass to have instances for each entity category (both observed/non-observed?)
  • extend TestCase with a syntactic sugar methods that cover specific category tests (let's try avoid writing code for each separate category and use the approach similar to HolidayBase::_add_holiday_*, e.g. assertGovernmentHolidayName, assertOptionalNoNonObservedHoliday)

arkid15r avatar Mar 15 '25 02:03 arkid15r

Hi, is your organization participating in GSoC 2025? I didn't see it on the GSoC website.

SammanSarkar avatar Mar 19 '25 14:03 SammanSarkar

I would like to work on this. Please assign this to me @arkid15r

SammanSarkar avatar Mar 26 '25 17:03 SammanSarkar