Skip to content

Commit

Permalink
Merging main into branch
Browse files Browse the repository at this point in the history
  • Loading branch information
spgarbet committed Dec 11, 2024
2 parents cddfbc2 + e8351ad commit e54da0a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@


[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10602052.svg)](https://doi.org/10.5281/zenodo.10602052)
![](https://cranlogs.r-pkg.org/badges/grand-total/redcapAPI)
[![License: GPL v2](https://img.shields.io/badge/License-GPL_v2-blue.svg)](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
context("redcapConnection Argument Validation")

API_KEY <- rcon$token
url <- rcon$url # Should not be required but it is

#####################################################################
# Argument Validation ####
Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test-024-unlockREDCap.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ context("unlockREDCap")
library(mockery)
library(curl)

url <- rcon$url # Should not be required but it is


h <- new_handle(timeout = 1L)
redirect <- structure(
list(url = "https://test.xyz/api/",
Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test-050-makeApiCall.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ context("makeApiCall Argument Validation")
library(mockery)
library(curl)

url <- rcon$url # Should not be required but it is


# Note: This file will only test that arguments fail appropriately, or
# that submethods perform as expected. the makeApiCall function
# is ubiquitous throughout the package. If we break it, it's bound
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
context("Export Typed Records Offline Functionality")

url <- rcon$url # Should not be required but it is

load(file.path(test_path("testdata"), "RedcapProject_test_redcapAPI.Rdata"))

suppressWarnings({
Expand Down

0 comments on commit e54da0a

Please sign in to comment.