Skip to content

Commit

Permalink
Adds DB Host env var
Browse files Browse the repository at this point in the history
  • Loading branch information
edgararuiz committed Sep 2, 2024
1 parent 001c6f3 commit 8d38734
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/testthat/test-chattr-use.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ test_that("Request submission works", {

test_that("Missing token prevents showing the option", {
withr::with_envvar(
new = c("OPENAI_API_KEY" = NA, "DATABRICKS_TOKEN" = "test"),
new = c(
"OPENAI_API_KEY" = NA,
"DATABRICKS_TOKEN" = "test",
"DATABRICKS_HOST" = "test"
),
{
out <- ch_get_ymls(menu = FALSE)
expect_null(out$gpt35)
Expand Down

0 comments on commit 8d38734

Please sign in to comment.