Skip to content

Commit

Permalink
Added test cases for TV Licence (#794)
Browse files Browse the repository at this point in the history
* Update LBTT rate increase for non-primary residences

* Fix SDLT description

* Add documention for LTT and LBTT

* Change the legend in graphs

* Added test cases for TV Licence

---------

Co-authored-by: Nikhil Woodruff <[email protected]>
  • Loading branch information
Weishan-Lu and nikhilwoodruff authored Dec 14, 2023
1 parent 6f13113 commit c105122
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: patch
changes:
added:
- Test cases for TV Licence.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
- name: TV Licence full price - ineligible for aged or blind discount.
period: 2023
input:
tv_licence_discount: 0
output:
tv_licence: 159.00

- name: TV Licence half price - eligible for blind discount but not aged.
period: 2023
input:
tv_licence_discount: 0.5
output:
tv_licence: 79.50

- name: Free TV Licence - eligible for aged discount.
period: 2023
input:
tv_licence_discount: 1
output:
tv_licence: 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
- name: Ineligible for any discount.
period: 2023
input:
age: 74
pension_credit: 0
is_blind: false
output:
tv_licence_discount: 0

- name: Eligible for aged discount only.
period: 2023
input:
age: 75
pension_credit: 1
is_blind: false
output:
tv_licence_discount: 1

- name: Aged over 75 but ineligible for aged discount.
period: 2023
input:
age: 75
pension_credit: 0
is_blind: false
output:
tv_licence_discount: 0

- name: Eligible for blind discount only.
period: 2023
input:
age: 74
pension_credit: 0
is_blind: true
output:
tv_licence_discount: 0.5

- name: Eligible for both aged and blind discounts.
period: 2023
input:
age: 75
pension_credit: 1
is_blind: true
output:
tv_licence_discount: 1

0 comments on commit c105122

Please sign in to comment.