File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,8 @@ Suggests:
51
51
rmarkdown,
52
52
stringi,
53
53
testthat (>= 3.0.0),
54
- tibble
54
+ tibble,
55
+ withr
55
56
VignetteBuilder: knitr
56
57
Config/testthat/edition: 3
57
58
Encoding: UTF-8
Original file line number Diff line number Diff line change
1
+ test_that(" get_schema() shows deprecation warning" , {
2
+ p <- example_package()
3
+ lifecycle :: expect_deprecated(get_schema(p , " deployments" ))
4
+ })
5
+
6
+ test_that(" get_schema() forwards to schema()" , {
7
+ withr :: local_options(lifecycle_verbosity = " quiet" )
8
+ p <- example_package()
9
+ expect_identical(
10
+ get_schema(p , " deployments" ),
11
+ schema(p , " deployments" )
12
+ )
13
+ })
14
+
15
+ test_that(" resources() shows deprecation warning" , {
16
+ p <- example_package()
17
+ lifecycle :: expect_deprecated(resources(p ))
18
+ })
19
+
20
+ test_that(" resources() forwards to resource_names()" , {
21
+ withr :: local_options(lifecycle_verbosity = " quiet" )
22
+ p <- example_package()
23
+ expect_identical(
24
+ resources(p ),
25
+ resource_names(p )
26
+ )
27
+ })
You can’t perform that action at this time.
0 commit comments