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/ss-backend-preprocess-situation-hook.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Give the Social Security state test backend's stand-in system the situation preprocessing hook that policyengine-core's builder calls.
6 changes: 6 additions & 0 deletions policyengine_us/tests/core/_social_security_state_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,12 @@ class System:
data_modified = False
auto_carry_over_input_variables = True

def preprocess_situation(self, situation, default_period=None):
# Core's build_from_entities calls this country hook before
# building a situation (policyengine-core PR 600); the
# fixture's one-person situation needs no groups filled in.
return situation

def __init__(self):
self.cache_blacklist = list(cache_blacklist)
self.variables = {
Expand Down
Loading