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
1 change: 1 addition & 0 deletions changelog.d/claimant-or-partner-documentation.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The rules for `is_claimant_or_partner` now appear in its variable metadata, not only in the class docstring.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from policyengine_uk import CountryTaxBenefitSystem


def test_claimant_or_partner_documentation_reaches_variable_metadata():
variable = CountryTaxBenefitSystem().get_variable("is_claimant_or_partner")
documentation = (variable.documentation or "").strip()
assert documentation.startswith("The single adult or couple a benefit unit")
assert "SSCBA 1992 s.137(1)" in documentation
assert "Any further adults are neither claimant nor partner." in documentation
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@


class is_claimant_or_partner(Variable):
"""The single adult or couple a benefit unit is formed around.
documentation = """
The single adult or couple a benefit unit is formed around.

In benefit law this is the claimant and their partner, as opposed to the
children and young persons they are responsible for (SSCBA 1992 s.137(1)
Expand Down
Loading