Skip to content

Commit

Permalink
skip all tests on cran
Browse files Browse the repository at this point in the history
  • Loading branch information
schochastics committed Feb 11, 2025
1 parent 0986171 commit cae8e46
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@
^WORDLIST$
^inst/WORDLIST$
^cran-comments\.md$
^CRAN-SUBMISSION$
_pkgdown.yml
1 change: 1 addition & 0 deletions tests/testthat/test-collections.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
if (!identical(Sys.getenv("NOT_CRAN"), "true")) return()
source("helper.R")

test_that("create_collection works", {
Expand Down
7 changes: 6 additions & 1 deletion tests/testthat/test-connection.R
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
if (!identical(Sys.getenv("NOT_CRAN"), "true")) return()
test_that("chroma_connect works", {
client <- chroma_connect()
expect_s3_class(client, "chroma_client")
expect_type(client$base_url, "character")
expect_s3_class(client$req, "httr2_request")

# Test custom host and port
client2 <- chroma_connect(host = "http://localhost", port = 8001L, verify = FALSE)
client2 <- chroma_connect(
host = "http://localhost",
port = 8001L,
verify = FALSE
)
expect_equal(client2$base_url, "http://localhost:8001/api/v2")

# Test connection error
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-database.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
if (!identical(Sys.getenv("NOT_CRAN"), "true")) return()
source("helper.R")

test_that("create_database works", {
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-documents.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
if (!identical(Sys.getenv("NOT_CRAN"), "true")) return()
source("helper.R")

test_that("add_documents works", {
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-query.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
if (!identical(Sys.getenv("NOT_CRAN"), "true")) return()
source("helper.R")

test_that("query works", {
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-tenants.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
if (!identical(Sys.getenv("NOT_CRAN"), "true")) return()
source("helper.R")

test_that("create_tenant works", {
Expand Down

0 comments on commit cae8e46

Please sign in to comment.