Skip to content

Commit e1f831e

Browse files
committed
remove with_mock defunct function in test
1 parent 7a0bf5d commit e1f831e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/testthat/test-read_importrainmany.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ test_that("read_importrainmany works correctly", {
1010
)
1111
)
1212

13-
# Use with_mock instead of stub
14-
with_mock(
15-
"tbeptools::read_importrain" = mock_read_importrain,
13+
# Use with_mocked_bindings
14+
with_mocked_bindings(
15+
read_importrain = mock_read_importrain,
1616
{
1717
# Call the function with mocked dependencies
1818
result <- read_importrainmany(2021, quiet = FALSE)

0 commit comments

Comments
 (0)