Skip to content

Commit

Permalink
Small fix to documentation, adds some instructions to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
edgararuiz committed Sep 30, 2024
1 parent 6452b77 commit c5bfbcc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions R/board-databricks.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
#' folder. For example: /Volumes/my-catalog/my-schema/my-volume.
#' @param host Your [Workspace Instance URL](https://docs.databricks.com/en/workspace/workspace-details.html#workspace-url).
#' If `NULL`, it will search for URL in two different environment variables:
#' - DATABRICKS_HOST
#' - CONNECT_DATABRICKS_HOST
#' - 'DATABRICKS_HOST'
#' - 'CONNECT_DATABRICKS_HOST'
#'
#' Defaults to `NULL`.
#' @param prefix Prefix within this bucket that this board will occupy.
Expand Down
4 changes: 2 additions & 2 deletions man/board_databricks.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions tests/testthat/test-board-databricks.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# To run these tests, you will need a Databricks Volume, with read/write access,
# and the following environment variables set:
# PINS_DATABRICKS_FOLDER_URL - The path to your Databricks Volume
# DATABRICKS_HOST - Your Workpace Instance URL
# DATABRICKS_TOKEN - Your PAT
skip_if_not_installed("httr2")
test_that("Deparse works", {
expect_snapshot(board_databricks("THIS-IS-A-TEST", host = "NOT-A-HOST"))
Expand Down

0 comments on commit c5bfbcc

Please sign in to comment.