@@ -6,6 +6,12 @@ path <- c(
66 file.path(examples_path , " exampleOkay" ),
77 file.path(examples_path , " exampleBad" )
88)
9+ expected_revdeps <- tools :: package_dependencies(
10+ " DALEXtra" ,
11+ db = utils :: available.packages(repos = " https://cran.r-project.org/" ),
12+ reverse = TRUE ,
13+ which = " all"
14+ )[[1 ]]
915
1016test_that(" rev_dep_check_tasks_df works with deafult params" , {
1117 expect_silent(
@@ -15,7 +21,7 @@ test_that("rev_dep_check_tasks_df works with deafult params", {
1521 )
1622 )
1723 expect_s3_class(df , " data.frame" )
18- expect_true(NROW(df ) > = 8 )
24+ expect_true(NROW(df ) > = 2 * length( expected_revdeps ) )
1925 expect_named(df , c(" alias" , " version" , " package" , " custom" ))
2026
2127 expect_s3_class(df $ package , " list_of_task_spec" )
@@ -118,7 +124,7 @@ test_that("rev_dep_check_tasks_df development_only = TRUE", {
118124 )
119125 )
120126 expect_s3_class(df , " data.frame" )
121- expect_true(NROW(df ) > = 4 )
127+ expect_true(NROW(df ) > = length( expected_revdeps ) )
122128 expect_named(df , c(" alias" , " version" , " package" , " custom" ))
123129
124130 expect_s3_class(df $ package , " list_of_task_spec" )
0 commit comments