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
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:
fixed:
- Updated tests to expect Enhanced CPS dataset by default
8 changes: 5 additions & 3 deletions tests/unit/services/test_economy_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,8 @@ def test__given_us_nationwide__returns_correct_sim_options(self):
assert sim_options["time_period"] == self.test_time_period
assert sim_options["region"] == "us"
assert (
sim_options["data"] == "gs://policyengine-us-data/cps_2023.h5"
sim_options["data"]
== "gs://policyengine-us-data/enhanced_cps_2024.h5"
)

def test__given_us_state_ca__returns_correct_sim_options(self):
Expand Down Expand Up @@ -766,7 +767,8 @@ def test__given_cliff_target__returns_correct_sim_options(self):
assert sim_options["time_period"] == time_period
assert sim_options["region"] == region
assert (
sim_options["data"] == "gs://policyengine-us-data/cps_2023.h5"
sim_options["data"]
== "gs://policyengine-us-data/enhanced_cps_2024.h5"
)
assert sim_options["include_cliffs"] is True

Expand Down Expand Up @@ -942,7 +944,7 @@ def test__given_us_nationwide__returns_cps_dataset(self):
# Test with US nationwide region
service = EconomyService()
result = service._setup_data("us", "us")
assert result == "gs://policyengine-us-data/cps_2023.h5"
assert result == "gs://policyengine-us-data/enhanced_cps_2024.h5"

def test__given_congressional_district__returns_district_dataset(self):
# Test with congressional district - returns district-specific dataset
Expand Down
Loading