vubiostat / redcapAPI

R interface to REDCap (http://www.project-redcap.org/)
21 stars 27 forks source link

Create Fake Keyring for Testing redcapConnection Object Creation #406

Closed jubilee2 closed 4 months ago

jubilee2 commented 4 months ago

https://github.com/vubiostat/redcapAPI/blob/main/tests/testthat/test-020-redcapConnection-Functionality.R

To ensure the redcapConnection object can be created successfully, we need to create a fake YAML configuration file and a fake keyring. This will allow us to test both methods of obtaining the API key.