Skip to content

Commit dd610bb

Browse files
committed
Testing tables are created
1 parent 8a35425 commit dd610bb

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
CREATE TABLE @result_schema.foo (
22
id integer
33
);
4+
5+
CREATE TABLE @result_schema.foo2 (
6+
id integer
7+
);

tests/testthat/test-QueryNamespace.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ test_that("test setConnectionHandler and getConnectionHandler functions", {
9090
expect_true("createTestData" %in% names(qns))
9191

9292
qns$createTestData()
93+
94+
checkmate::expect_data_frame(qns$queryDb("SELECT * FROM @result_schema.foo"))
95+
checkmate::expect_data_frame(qns$queryDb("SELECT * FROM @result_schema.foo2"))
9396
})
9497

9598
test_that("create helper function works", {

0 commit comments

Comments
 (0)