From 3122ab4c2c84571f2eebf393f3e41630b8ef5f25 Mon Sep 17 00:00:00 2001 From: Julia Silge Date: Fri, 11 Aug 2023 14:33:47 -0600 Subject: [PATCH] Mock version name, for timestamp issue --- R/pin-meta.R | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/R/pin-meta.R b/R/pin-meta.R index 93ed8202..74c86855 100644 --- a/R/pin-meta.R +++ b/R/pin-meta.R @@ -107,6 +107,12 @@ test_api_meta <- function(board) { }) testthat::test_that("can update pin metadata", { + mock_version_name <- + mockery::mock( + "20130104T050607Z-xxxxx", + "20130204T050607Z-yyyyy" + ) + testthat::local_mocked_bindings(version_name = mock_version_name) # RSC requires at least 3 characters name <- local_pin(board, 1, title = "xxx-a1", description = "xxx-a2") pin_write(board, 1, name, title = "xxx-b1", description = "xxx-b2", force_identical_write = TRUE)