Skip to content

Commit 9805706

Browse files
committed
fix tests
1 parent ff7cecb commit 9805706

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/testthat/test-db-impact.R

+9-1
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ test_that("impact calculation by year of vaccination country perspective", {
180180
})
181181

182182
test_that("impact calculation by year of vaccination cohort perspective", {
183+
183184
impact <- impact_by_year_of_vaccination_cohort_perspective(
184185
impact_test_data, fvp_test_data_15, 2000:2030)
185186
expect_equal(colnames(impact),
@@ -272,11 +273,13 @@ test_that("impact by calendar year: external and internal functions agree", {
272273

273274
meta <- data_frame(
274275
scenario_type = c("default", "default"),
276+
disease = c("YF", "YF"),
275277
vaccine_delivery = c("YF-campaign,YF-routine", "YF-routine"),
276278
meta_type = c("baseline", "focal"),
277279
index = c(1, 1),
278280
method = c("method0", "method0"),
279281
burden_estimate_set = c(1, 2),
282+
burden_outcome = c("deaths", "deaths"),
280283
burden_outcome_id = c("1", "1"))
281284

282285
vimc_impact <- get_raw_impact_details(con = con, meta,
@@ -332,14 +335,16 @@ test_that("impact by birth year: external and internal functions agree", {
332335

333336
meta <- data_frame(
334337
scenario_type = c("default", "default"),
338+
disease = c("YF", "YF"),
335339
vaccine_delivery = c("YF-campaign,YF-routine", "YF-routine"),
336340
meta_type = c("baseline", "focal"),
337341
index = c(1, 1),
338342
method = c("method1", "method1"),
339343
burden_estimate_set = c(1, 2),
344+
burden_outcome = c("deaths", "deaths"),
340345
burden_outcome_id = c("1", "1"))
341346

342-
vimc_impact <- get_raw_impact_details(con = con, meta,
347+
vimc_impact <- get_raw_impact_details(con = con, meta,
343348
burden_outcome = "deaths")
344349
public_impact <- impact_by_birth_year(impact_test_data_baseline,
345350
impact_test_data_focal)
@@ -426,6 +431,7 @@ test_that("impact activity type: functions agree - routine", {
426431
index = c(1, 1),
427432
method = c("method2a", "method2a"),
428433
burden_estimate_set = c(1, 2),
434+
burden_outcome = c("deaths", "deaths"),
429435
burden_outcome_id = c("1", "1"))
430436

431437
routine_raw_impact <- get_raw_impact_details(con = con, meta,
@@ -475,6 +481,7 @@ test_that("impact activity type: functions agree - campaign", {
475481
index = c(1, 1),
476482
method = c("method2a", "method2a"),
477483
burden_estimate_set = c(1, 2),
484+
burden_outcome = c("deaths", "deaths"),
478485
burden_outcome_id = c("1", "1"))
479486

480487
campaign_raw_impact <- get_raw_impact_details(con = con, meta,
@@ -541,6 +548,7 @@ test_that("impact birth cohort: internal and external functions agree", {
541548
index = c(1, 1),
542549
method = c("method2b", "method2b"),
543550
burden_estimate_set = c(1, 2),
551+
burden_outcome = c("deaths", "deaths"),
544552
burden_outcome_id = c("1", "1"))
545553

546554
vimc_raw_impact <- get_raw_impact_details(con = con, meta,

0 commit comments

Comments
 (0)