From 17d042f476fb0930f5e4ad70a29f81b5efe4478b Mon Sep 17 00:00:00 2001 From: Rob Ashton Date: Wed, 29 Jan 2025 16:06:46 +0000 Subject: [PATCH 1/2] Bump naomi version number --- DESCRIPTION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 5c531f1d..92d3c646 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -24,7 +24,7 @@ Imports: glue, ids, jsonlite (>= 1.2.2), - naomi (>= 2.10.3), + naomi (>= 2.10.9), naomi.options (>= 1.1.0), porcelain (>= 0.1.8), qs, From 531aed04decaabb36bf267a4d2c31ad3081376d9 Mon Sep 17 00:00:00 2001 From: Rob Ashton Date: Wed, 29 Jan 2025 16:48:04 +0000 Subject: [PATCH 2/2] Update prerun test to work with updated example site --- hintr.Rproj | 1 + tests/testthat/test-prerun.R | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hintr.Rproj b/hintr.Rproj index cba1b6b7..40433a31 100644 --- a/hintr.Rproj +++ b/hintr.Rproj @@ -1,4 +1,5 @@ Version: 1.0 +ProjectId: b7f68c42-2538-4278-ac41-c26bd843db36 RestoreWorkspace: No SaveWorkspace: No diff --git a/tests/testthat/test-prerun.R b/tests/testthat/test-prerun.R index f6f98b1e..0ce99773 100644 --- a/tests/testthat/test-prerun.R +++ b/tests/testthat/test-prerun.R @@ -56,7 +56,7 @@ test_that("error returned if httr request fails", { expect_error( hintr_submit_prerun(prerun_inputs, mock_model, mock_calibrate, "https://example.com", port = NULL), - "Method Not Allowed (HTTP 405)", + "Forbidden (HTTP 403)", fixed = TRUE) })