blob: b8813eaaca8b074ec1c108052d21fb6e7d94b226 [file] [log] [blame]
Marc Kupietz5d9e3a22020-03-23 09:03:29 +01001library("testthat")
2library("RKorAPClient")
3
Marc Kupietzbd9796f2025-06-26 15:40:08 +02004# Set up keyring for testing to avoid interactive password prompts
5if (requireNamespace("keyring", quietly = TRUE)) {
6 # Use environment backend for testing to avoid password prompts
7 if (!nzchar(Sys.getenv("KEYRING_BACKEND"))) {
8 Sys.setenv("KEYRING_BACKEND" = "env")
9 }
10 # Set empty password for file backend if needed
11 if (!nzchar(Sys.getenv("KEYRING_PASS"))) {
12 Sys.setenv("KEYRING_PASS" = "")
13 }
14}
15
Marc Kupietz5d9e3a22020-03-23 09:03:29 +010016test_check("RKorAPClient")