Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .beads/daemon-2026-01-17T13-16-24.425.log.gz
Binary file not shown.
2 changes: 2 additions & 0 deletions .github/workflows/pr_code_changes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
- policyengine_uk/**
- tests/**
- .github/**
- pyproject.toml
- uv.lock
workflow_dispatch:

jobs:
Expand Down
5 changes: 5 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- bump: patch
changes:
fixed:
- CI now runs on dependency updates (pyproject.toml, uv.lock changes)
- Fixed Scottish Child Payment test format to use array notation for person-level output
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Scottish Child Payment tests
# SCP available from Feb 2021, extended to under-16s from Nov 2022
# scottish_child_payment is a Person-level variable
# Output uses array format: [person1, person2, ...] matching input order

- name: SCP for family receiving UC in Scotland (2024)
period: 2024
Expand All @@ -23,10 +24,8 @@
region: SCOTLAND
output:
# £26.70/week * 52 weeks = £1,388.40 per child
scottish_child_payment:
parent: 0
child_1: 1388
child_2: 1388
# [parent, child_1, child_2]
scottish_child_payment: [0, 1388, 1388]

- name: SCP for family receiving UC in Scotland (2023)
period: 2023
Expand All @@ -49,10 +48,8 @@
region: SCOTLAND
output:
# £25/week * 52 weeks = £1,300 per child
scottish_child_payment:
parent: 0
child_1: 1300
child_2: 1300
# [parent, child_1, child_2]
scottish_child_payment: [0, 1300, 1300]

- name: No SCP for families not receiving qualifying benefit
period: 2024
Expand All @@ -73,9 +70,8 @@
members: [parent, child_1]
region: SCOTLAND
output:
scottish_child_payment:
parent: 0
child_1: 0
# [parent, child_1]
scottish_child_payment: [0, 0]

- name: No SCP in England
period: 2024
Expand All @@ -95,9 +91,8 @@
members: [parent, child_1]
region: NORTH_EAST
output:
scottish_child_payment:
parent: 0
child_1: 0
# [parent, child_1]
scottish_child_payment: [0, 0]

- name: No SCP in Wales
period: 2024
Expand All @@ -117,9 +112,8 @@
members: [parent, child_1]
region: WALES
output:
scottish_child_payment:
parent: 0
child_1: 0
# [parent, child_1]
scottish_child_payment: [0, 0]

- name: SCP before Nov 2022 only for under-6s
period: 2022
Expand All @@ -142,10 +136,8 @@
region: SCOTLAND
output:
# Only child_young (age 4) eligible, £20/week * 52 = £1,040
scottish_child_payment:
parent: 0
child_young: 1040
child_older: 0
# [parent, child_young, child_older]
scottish_child_payment: [0, 1040, 0]

- name: SCP for family receiving Child Tax Credit (2023 - CTC still qualifies)
period: 2023
Expand All @@ -166,9 +158,8 @@
region: SCOTLAND
output:
# £25/week * 52 weeks = £1,300
scottish_child_payment:
parent: 0
child_1: 1300
# [parent, child_1]
scottish_child_payment: [0, 1300]

- name: No SCP before Feb 2021
period: 2020
Expand All @@ -188,9 +179,8 @@
members: [parent, child_1]
region: SCOTLAND
output:
scottish_child_payment:
parent: 0
child_1: 0
# [parent, child_1]
scottish_child_payment: [0, 0]

- name: No SCP for child over 16
period: 2024
Expand All @@ -210,9 +200,8 @@
members: [parent, child_1]
region: SCOTLAND
output:
scottish_child_payment:
parent: 0
child_1: 0
# [parent, child_1]
scottish_child_payment: [0, 0]

- name: Large family with multiple eligible children
period: 2024
Expand All @@ -239,12 +228,8 @@
region: SCOTLAND
output:
# £26.70/week * 52 weeks = £1,388.40 per child
scottish_child_payment:
parent: 0
child_1: 1388
child_2: 1388
child_3: 1388
child_4: 1388
# [parent, child_1, child_2, child_3, child_4]
scottish_child_payment: [0, 1388, 1388, 1388, 1388]

# New tests for 2025 amount and qualifying benefit changes

Expand All @@ -267,9 +252,8 @@
region: SCOTLAND
output:
# £27.15/week * 52 weeks = £1,411.80
scottish_child_payment:
parent: 0
child_1: 1412
# [parent, child_1]
scottish_child_payment: [0, 1412]

- name: CTC no longer qualifies from 2025 (after April 2024)
period: 2025
Expand All @@ -291,9 +275,8 @@
region: SCOTLAND
output:
# CTC removed as qualifying benefit from April 2024
scottish_child_payment:
parent: 0
child_1: 0
# [parent, child_1]
scottish_child_payment: [0, 0]

- name: CTC still qualifies in 2023 (before April 2024)
period: 2023
Expand All @@ -315,9 +298,8 @@
region: SCOTLAND
output:
# £25/week * 52 weeks = £1,300
scottish_child_payment:
parent: 0
child_1: 1300
# [parent, child_1]
scottish_child_payment: [0, 1300]

- name: WTC no longer qualifies from 2025
period: 2025
Expand All @@ -339,9 +321,8 @@
region: SCOTLAND
output:
# WTC removed as qualifying benefit from April 2024
scottish_child_payment:
parent: 0
child_1: 0
# [parent, child_1]
scottish_child_payment: [0, 0]

- name: Income Support still qualifies in 2025
period: 2025
Expand All @@ -363,9 +344,8 @@
region: SCOTLAND
output:
# £27.15/week * 52 weeks = £1,411.80
scottish_child_payment:
parent: 0
child_1: 1412
# [parent, child_1]
scottish_child_payment: [0, 1412]

- name: JSA income-based still qualifies in 2025
period: 2025
Expand All @@ -387,9 +367,8 @@
region: SCOTLAND
output:
# £27.15/week * 52 weeks = £1,411.80
scottish_child_payment:
parent: 0
child_1: 1412
# [parent, child_1]
scottish_child_payment: [0, 1412]

- name: ESA income-related still qualifies in 2025
period: 2025
Expand All @@ -411,9 +390,8 @@
region: SCOTLAND
output:
# £27.15/week * 52 weeks = £1,411.80
scottish_child_payment:
parent: 0
child_1: 1412
# [parent, child_1]
scottish_child_payment: [0, 1412]

- name: Pension Credit still qualifies in 2025
period: 2025
Expand All @@ -435,6 +413,5 @@
region: SCOTLAND
output:
# £27.15/week * 52 weeks = £1,411.80
scottish_child_payment:
grandparent: 0
child_1: 1412
# [grandparent, child_1]
scottish_child_payment: [0, 1412]