diff --git a/.github/workflows/downstream.yml b/.github/workflows/downstream.yml index f5ed6474..1c1a553e 100644 --- a/.github/workflows/downstream.yml +++ b/.github/workflows/downstream.yml @@ -38,6 +38,6 @@ jobs: working-directory: holidays run: make generate - - name: Run smoke tests + - name: Run contract tests working-directory: holidays - run: make test-smoke + run: make test-contract diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a6c2f7d..c53940e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Holiday definitions +## 6.1.1 + +* Fix `fr` test cases to match Pentecôte/Lundi de Pentecôte informal swap introduced in 6.1.0 +* Fix `mc` Toussaint missing `observed` modifier and correct observed-day test cases +* Run contract tests (smoke + generated definition tests) in downstream CI instead of smoke-only + ## 6.1.0 * Introduce `mc` (Monaco) region (thanks to https://github.com/abenhamdine) diff --git a/VERSION.txt b/VERSION.txt index dfda3e0b..132c6def 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -6.1.0 +6.1.1 \ No newline at end of file diff --git a/fr.yaml b/fr.yaml index ddb34375..0018a86e 100644 --- a/fr.yaml +++ b/fr.yaml @@ -101,7 +101,7 @@ tests: date: '2007-05-27' regions: ["fr"] expect: - name: "Pentecôte" + holiday: false - given: date: '2007-07-14' regions: ["fr"] @@ -136,7 +136,7 @@ tests: date: '2007-05-28' regions: ["fr"] expect: - holiday: false + name: "Lundi de Pentecôte" - given: date: '2007-04-08' regions: ["fr"] @@ -144,11 +144,11 @@ tests: expect: name: "Pâques" - given: - date: '2007-05-28' + date: '2007-05-27' regions: ["fr"] options: ["informal"] expect: - name: "Lundi de Pentecôte" + name: "Pentecôte" - given: date: '2017-12-26' regions: ["fr_a", "fr_m"] diff --git a/mc.yaml b/mc.yaml index eb5b998f..61c080b9 100644 --- a/mc.yaml +++ b/mc.yaml @@ -44,6 +44,7 @@ months: - name: Toussaint regions: [mc] mday: 1 + observed: to_monday_if_sunday(date) - name: Fête du Prince regions: [mc] mday: 19 @@ -127,6 +128,7 @@ tests: - given: date: '2024-12-09' regions: ["mc"] + options: ["observed"] expect: name: "Immaculée Conception" # 2025: Nov 1 is Saturday. @@ -139,5 +141,6 @@ tests: - given: date: '2026-11-02' regions: ["mc"] + options: ["observed"] expect: name: "Toussaint"