Skip to content

Commit

Permalink
revert snapshot test and remove lint
Browse files Browse the repository at this point in the history
  • Loading branch information
JosiahParry committed Jan 12, 2024
1 parent b519cc5 commit 2a25ec1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion R/cran-compliance.R
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ vendor_pkgs <- function(path = ".", quiet = FALSE, overwrite = NULL) {
rlang::set_names(c("source", "crate", "version")) %>%
dplyr::filter(!is.na(source)) %>%
dplyr::select(-source) %>%
dplyr::arrange(.data$crate) # nolint: object_usage_linter
dplyr::arrange(.data$crate)

# capture vendor-config.toml content
config_toml <- vendor_res[["stdout"]] %>%
Expand Down
26 changes: 13 additions & 13 deletions tests/testthat/_snaps/use_cran_defaults.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,18 +181,18 @@
---

Code
package_versions["crate"]
package_versions
Output
# A tibble: 9 x 1
crate
<chr>
1 extendr-api
2 extendr-macros
3 libR-sys
4 once_cell
5 paste
6 proc-macro2
7 quote
8 syn
9 unicode-ident
# A tibble: 9 x 2
crate version
<chr> <chr>
1 extendr-api 0.6.0
2 extendr-macros 0.6.0
3 libR-sys 0.6.0
4 once_cell 1.19.0
5 paste 1.0.14
6 proc-macro2 1.0.76
7 quote 1.0.35
8 syn 2.0.48
9 unicode-ident 1.0.12

2 changes: 1 addition & 1 deletion tests/testthat/test-use_cran_defaults.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ test_that("vendor_pkgs() vendors dependencies", {

package_versions <- vendor_pkgs(path, quiet = TRUE)
expect_snapshot(cat_file("src", "rust", "vendor-config.toml"))
expect_snapshot(package_versions["crate"])
expect_snapshot(package_versions)
expect_true(file.exists(file.path("src", "rust", "vendor.tar.xz")))
})

0 comments on commit 2a25ec1

Please sign in to comment.