Running ‘testthat.R’ [8s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(chattr)
  > 
  > test_check("chattr")
  
  -- chattr 
  * Provider: OpenAI - Chat Completions
  * Path/URL: https://api.openai.com/v1/chat/completions
  * Model: gpt-4
  * Label: GPT 4 (OpenAI)
  [ FAIL 1 | WARN 0 | SKIP 33 | PASS 41 ]
  
  ══ Skipped tests (33) ══════════════════════════════════════════════════════════
  • On CRAN (33): 'test-app-server.R:2:3', 'test-app-server.R:20:3',
    'test-app-ui.R:2:3', 'test-app-ui.R:12:3', 'test-app-ui.R:17:3',
    'test-app-ui.R:24:3', 'test-backend-databricks.R:12:3',
    'test-backend-databricks.R:90:3', 'test-backend-llamagpt.R:14:3',
    'test-backend-llamagpt.R:48:3', 'test-backend-llamagpt.R:64:3',
    'test-backend-llamagpt.R:68:3', 'test-backend-openai.R:12:3',
    'test-backend-openai.R:89:3', 'test-backend-openai.R:121:3',
    'test-backend-openai.R:156:3', 'test-backend-openai.R:174:3',
    'test-ch-defaults-save.R:3:3', 'test-ch_context.R:2:3',
    'test-ch_context.R:12:3', 'test-ch_defaults.R:2:3', 'test-ch_defaults.R:9:3',
    'test-ch_defaults.R:19:3', 'test-chattr-test.R:4:3',
    'test-chattr-test.R:13:3', 'test-chattr-test.R:22:3',
    'test-chattr-use.R:7:7', 'test-chattr-use.R:14:3', 'test-chattr-use.R:33:3',
    'test-chattr.R:11:3', 'test-chattr.R:15:3', 'test-chattr.R:26:3',
    'test-utils.R:6:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-backend-databricks.R:36:7'): Completion function works ─────────
  Error in `curl::curl_parse_url(url, baseurl = base_url, decode = FALSE)`: Failed to parse URL: Bad scheme
  Backtrace:
      ▆
   1. ├─withr::with_envvar(...) at test-backend-databricks.R:22:3
   2. │ └─base::force(code)
   3. ├─testthat::expect_null(...) at test-backend-databricks.R:36:7
   4. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   5. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   6. └─chattr:::ch_databricks_complete(...)
   7.   └─httr2::url_parse(host)
   8.     └─curl::curl_parse_url(url, baseurl = base_url, decode = FALSE)
  
  [ FAIL 1 | WARN 0 | SKIP 33 | PASS 41 ]
  Deleting unused snapshots:
  • app-server/001.json
  • app-server/002.json
  • app-server/003.json
  • app-server/004.json
  Error: Test failures
  Execution halted