Skip to content

Commit

Permalink
Last test
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Jun 19, 2022
1 parent 73b1e6a commit 45db8a3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/testthat/test-learn.R
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,14 @@ test_that("Learning from specific schema on MSSQL or Postgres works?", {
try(dbExecute(con_db, paste0("DROP SCHEMA ", schema_name_q)))
})

normalize_table_name <- function(x) {
tolower(gsub('["`]', "", x))
}

# test 'get_src_tbl_names()'
expect_identical(
sort(get_src_tbl_names(con_db, schema = schema_name)),
SQL(sort(remote_tbl_names))
sort(normalize_table_name(get_src_tbl_names(con_db, schema = schema_name))),
SQL(sort(normalize_table_name(remote_tbl_names)))
)

# learning with keys:
Expand Down

0 comments on commit 45db8a3

Please sign in to comment.