Skip to content

Commit

Permalink
test fix with override
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyclements committed Jun 18, 2024
1 parent dadd6b2 commit 9632984
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/testthat/test-crop_success_probabilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ library(testthat)
# Test case 1
epicsadata::gcs_auth_file(file = "testdata/epicsa_token.json")
test_1_results <- readRDS("testdata/crop_success_probabilities_test_1.rds")
test_2_results <- readRDS("testdata/crop_success_probabilities_test_2.rds")
country <- "zm_test"
station_id <- "r_data_test_1"

Expand All @@ -13,5 +14,5 @@ test_that("Correct summaries are called", {

test_that("Correct summaries are calculated", {
result <- suppressWarnings(crop_success_probabilities(country, station_id, override = TRUE))
expect_true(identical(result[[2]], test_1_results))
})
expect_true(identical(result[[2]], test_2_results))
})
Binary file not shown.

0 comments on commit 9632984

Please sign in to comment.