Skip to content

Commit

Permalink
Add comments to tests for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
asaficontact committed Aug 12, 2024
1 parent b943e55 commit 506185a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/test-embed.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
library(testthat)
library(ollamar)

# Note for the following test to work you need to make sure the "all-minilm" model exists locally

test_that("embed function works with basic input", {
skip_if_not(test_connection()$status_code == 200, "Ollama server not available")

Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-generate.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ test_that("generate function works with additional options", {
})


# Note for the following test to work you need to make sure the "benzie/llava-phi-3:latest" model exists locally

test_that("generate function works with images", {
skip_if_not(test_connection()$status_code == 200, "Ollama server not available")

Expand Down

0 comments on commit 506185a

Please sign in to comment.