Running ‘testthat.R’ [16s/30s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # Copyright (c) Meta Platforms, Inc. and affiliates.
  > # All rights reserved.
  > #
  > # This source code is licensed under the BSD-style license found in the
  > # LICENSE file in the root directory of this source tree.
  > 
  > library("testthat")
  > library("DBI")
  > library("RPresto")
  > 
  > test_check("RPresto")
  [ FAIL 1 | WARN 0 | SKIP 68 | PASS 258 ]
  
  ══ Skipped tests (68) ══════════════════════════════════════════════════════════
  • On CRAN (60): 'test-bigint_handling.R:12:3', 'test-bigint_handling.R:25:3',
    'test-bigint_handling.R:54:3', 'test-cte.R:12:3', 'test-cte.R:28:3',
    'test-cte.R:69:3', 'test-data_types.R:12:3', 'test-data_types.R:33:3',
    'test-data_types.R:69:3', 'test-data_types.R:100:3',
    'test-data_types.R:130:3', 'test-dbClearResult.R:12:3',
    'test-dbCreateTable.R:12:3', 'test-dbCreateTable.R:43:3',
    'test-dbCreateTableAs.R:12:3', 'test-dbCreateTableAs.R:56:3',
    'test-dbDisconnect.R:12:3', 'test-dbExecute.R:12:3', 'test-dbExecute.R:35:3',
    'test-dbExecute.R:58:3', 'test-dbExecute.R:81:3',
    'test-dbExistsTable.R:12:3', 'test-dbFetch.R:12:3', 'test-dbGetInfo.R:12:3',
    'test-dbGetQuery.R:12:3', 'test-dbGetRowCount.R:12:3',
    'test-dbGetStatement.R:12:3', 'test-dbHasCompleted.R:12:3',
    'test-dbIsValid.R:12:3', 'test-dbListFields.R:12:3',
    'test-dbListTables.R:12:3', 'test-dbReadTable.R:12:3',
    'test-dbRemoveTable.R:12:3', 'test-dbRenameTable.R:32:3',
    'test-dbSendQuery.R:12:3', 'test-db_explain.R:12:3',
    'test-db_query_fields.R:12:3', 'test-dbplyr-sql.R:12:3',
    'test-dplyr.integration.R:12:3', 'test-dplyr_as_type.R:12:3',
    'test-extra.credential.R:12:3', 'test-fetch.R:12:3',
    'test-integration.R:33:3', 'test-presto_field.R:222:3',
    'test-presto_field.R:529:3', 'test-presto_field.R:767:3',
    'test-presto_field.R:843:3', 'test-presto_field.R:889:3',
    'test-presto_field.R:959:3', 'test-presto_field.R:983:3',
    'test-presto_field.R:1005:3', 'test-presto_field.R:1019:3',
    'test-presto_field.R:1103:3', 'test-session.property.R:21:3',
    'test-session.timezone.R:23:3', 'test-tbl.src_presto.R:12:3',
    'test-tbl.src_presto.R:79:3', 'test-translate_sql.R:34:3',
    'test-translate_sql.R:200:3', 'test-translate_sql.R:355:3'
  • Test database not available (6): 'test-copy_to.src_presto.R:53:3',
    'test-copy_to.src_presto.R:61:3', 'test-copy_to.src_presto.R:67:3',
    'test-dbAppendTable.R:12:3', 'test-dbWriteTable.R:12:3',
    'test-dbWriteTable.R:78:3'
  • presto_has_default() is not TRUE (2): 'test-dbListFields.R:32:3',
    'test-tbl.src_presto.R:46:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-db_query_fields.R:42:3'): db_query_fields works with mock ──────
  Error in `dplyr::db_query_fields(s[["con"]], dplyr::ident("two_columns"))`: Can't query fields.
  Caused by error in `httr::POST()`:
  ! No mocks for url: http://localhost:8000/v1/statement, request_body: SELECT * FROM "two_columns" "q02" WHERE 1 = 0
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...)
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─dplyr::db_query_fields(s[["con"]], dplyr::ident("two_columns"))
    5. └─dbplyr:::db_query_fields.DBIConnection(s[["con"]], dplyr::ident("two_columns"))
    6.   └─base::tryCatch(...)
    7.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    8.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
    9.         └─value[[3L]](cond)
   10.           └─cli::cli_abort("Can't query fields.", parent = cnd)
   11.             └─rlang::abort(...)
  
  [ FAIL 1 | WARN 0 | SKIP 68 | PASS 258 ]
  Error: Test failures
  Execution halted