Skip to content

Commit

Permalink
Update HolidayBase tests (#1447)
Browse files Browse the repository at this point in the history
  • Loading branch information
arkid15r authored Aug 31, 2023
1 parent e8f3d1b commit ec22609
Show file tree
Hide file tree
Showing 4 changed files with 833 additions and 714 deletions.
3 changes: 2 additions & 1 deletion holidays/holiday_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,13 +577,14 @@ def __repr__(self) -> str:
parts = []
if hasattr(self, "market"):
parts.append(f"holidays.financial_holidays({self.market!r}")
parts.append(")")
elif hasattr(self, "country"):
if parts:
parts.append(" + ")
parts.append(f"holidays.country_holidays({self.country!r}")
if self.subdiv:
parts.append(f", subdiv={self.subdiv!r}")
parts.append(")")
parts.append(")")

return "".join(parts)

Expand Down
Loading

0 comments on commit ec22609

Please sign in to comment.