Skip to content

Commit

Permalink
Update NL Goldens (#4825)
Browse files Browse the repository at this point in the history
Tests started failing because our NL goldens hardcode exact year that
rely on the real date. So tests like "Population over the last 5 years"
now excludes the year 2020.

A couple of the python unit tests also did the same thing, now they have
the date mocked.
  • Loading branch information
gmechali authored Jan 2, 2025
1 parent 93cd989 commit b594073
Show file tree
Hide file tree
Showing 10 changed files with 307 additions and 1,427 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"tiles": [
{
"lineTileSpec": {
"startDate": "2023"
"startDate": "2024"
},
"statVarKey": [
"Count_FireEvent_285042123"
Expand Down Expand Up @@ -102,7 +102,7 @@
"tiles": [
{
"lineTileSpec": {
"startDate": "2023"
"startDate": "2024"
},
"statVarKey": [
"Count_WildfireEvent_2519150620"
Expand All @@ -126,45 +126,9 @@
}
],
"title": "Wildfires"
},
{
"columns": [
{
"tiles": [
{
"rankingTileSpec": {
"rankingCount": 10,
"showHighest": true
},
"statVarKey": [
"Annual_ExpectedLoss_NaturalHazardImpact_WildfireEvent"
],
"title": "Annual Expected Loss From Natural Hazard Impact: Wildfire in Counties of California (${date})",
"type": "RANKING"
}
]
},
{
"tiles": [
{
"statVarKey": [
"Annual_ExpectedLoss_NaturalHazardImpact_WildfireEvent"
],
"title": "Annual Expected Loss From Natural Hazard Impact: Wildfire in Counties of California (${date})",
"type": "MAP"
}
]
}
],
"denom": "Count_Person",
"title": "Annual Expected Loss From Natural Hazard Impact: Wildfire in Counties of California"
}
],
"statVarSpec": {
"Annual_ExpectedLoss_NaturalHazardImpact_WildfireEvent": {
"name": "Annual Expected Loss from Natural Hazard Impact: Wildfire",
"statVar": "Annual_ExpectedLoss_NaturalHazardImpact_WildfireEvent"
},
"Count_FireEvent": {
"name": "Count of Fire Event",
"statVar": "Count_FireEvent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
},
{
"CosineScore": [
0.917032,
0.917033,
0.873019
],
"QueryPart": "population female population",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
{
"CosineScore": [
0.794237,
0.792901
0.792902
],
"QueryPart": "show climate",
"SV": [
Expand Down
Loading

0 comments on commit b594073

Please sign in to comment.