test(views): document hardcoded fixture-pop origin in gov_population_yearly test

This commit is contained in:
2026-04-29 15:37:05 -04:00
parent ed9658d267
commit df3fe3731b
+3
View File
@@ -72,6 +72,9 @@ test_that("gov_population_yearly exposes one row per (year, canonical_govid)", {
expect_setequal(df$year, c(2019L, 2020L)) expect_setequal(df$year, c(2019L, 2020L))
expect_equal(nrow(df), 2L) expect_equal(nrow(df), 2L)
expect_true(all(!is.na(df$population))) expect_true(all(!is.na(df$population)))
# Hardcoded values are from the bundled fixture (regenerated 2026-04-29
# against cog_pipeline aad34c6 + bd3e744). Update if the fixture is
# rebuilt against a different source vintage.
expect_equal(df$population[df$year == 2019L], 1935878L) expect_equal(df$population[df$year == 2019L], 1935878L)
expect_equal(df$population[df$year == 2020L], 1952778L) expect_equal(df$population[df$year == 2020L], 1952778L)
# Uniqueness on (year, canonical_govid) across the whole view. # Uniqueness on (year, canonical_govid) across the whole view.