Skip to content

Commit e82b521

Browse files
committed
✅ fix tests
1 parent 2e018c3 commit e82b521

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testthat/test-coleo_validate.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ test_that("coleo_validate", {
2121
## Test for missing campaign_type column
2222
dat_test <- subset(dat, select = -c(campaigns_type))
2323
testthat::expect_error(coleo_validate(dat_test),
24-
regexp = "V\U00E9rifiez qu'une colonne contient le type de campagne.*")
24+
regexp = "V\U00E9rifiez qu'une colonne contient le type d'inventaire*")
2525

2626
## Test for multiple values within the campaign_type column
2727
dat_test <- dat
2828
dat_test$campaigns_type <- c("sol", "insectes_sol","insectes_sol","insectes_sol","insectes_sol","insectes_sol")
2929
testthat::expect_error(coleo_validate(dat_test),
30-
regexp = "V\U00E9rifiez que toutes les valeurs de la colonne campaigns_type sont identiques.*")
30+
regexp = "V\U00E9rifiez que toutes les valeurs de la colonne campaigns_type.*")
3131

3232
## Test that the imported data has all of the required columns
3333
dat_test <- subset(dat, select = -c(observations_date_obs))

0 commit comments

Comments
 (0)