15
15
# limitations under the License.
16
16
17
17
for (nm in names(testServers )) {
18
- # nm <- "sqlite"
18
+ nm <- " sqlite"
19
19
server <- testServers [[nm ]]
20
20
21
21
# Params
@@ -30,11 +30,11 @@ for (nm in names(testServers)) {
30
30
conceptCountsDatabaseSchema <- " main"
31
31
conceptCountsTable <- " concept_counts"
32
32
conceptCountsTableIsTemp <- FALSE
33
- recordKeepingFile <- file.path(exportFolder , " record.csv" )
34
33
cohortTableNames <- CohortGenerator :: getCohortTableNames(cohortTable = server $ cohortTable )
35
34
cohortDatabaseSchema <- server $ cohortDatabaseSchema
36
35
cohortTable <- server $ cohortTable
37
- incremental <- TRUE
36
+ incremental <- FALSE
37
+ # incremental <- TRUE
38
38
conceptIdTable <- " #concept_ids"
39
39
40
40
# Tests
@@ -43,7 +43,7 @@ for (nm in names(testServers)) {
43
43
connection <- DatabaseConnector :: connect(server $ connectionDetails )
44
44
exportFolder <- file.path(tempdir(), paste0(nm , " no_concept" ))
45
45
dir.create(exportFolder )
46
-
46
+ recordKeepingFile <- file.path( exportFolder , " record.csv " )
47
47
# CreateConceptcounts table
48
48
49
49
CohortDiagnostics :: createConceptCountsTable(connection = connection ,
@@ -102,7 +102,7 @@ for (nm in names(testServers)) {
102
102
expect_true(file.exists(recordKeepingFile ))
103
103
recordKeeping <- read.csv(recordKeepingFile )
104
104
expect_equal(colnames(recordKeeping ), c(" cohortId" , " task" , " checksum" , " timeStamp" ))
105
- expect_equal(unique(recordKeeping $ task ), " runInclusionStatistics " )
105
+ expect_equal(unique(recordKeeping $ task ), " runOrphanConcepts " )
106
106
expect_true(all(recordKeeping $ cohortId %in% server $ cohortDefinitionSet $ cohortId ))
107
107
108
108
unlink(exportFolder )
@@ -175,7 +175,7 @@ for (nm in names(testServers)) {
175
175
expect_true(file.exists(recordKeepingFile ))
176
176
recordKeeping <- read.csv(recordKeepingFile )
177
177
expect_equal(colnames(recordKeeping ), c(" cohortId" , " task" , " checksum" , " timeStamp" ))
178
- expect_equal(unique(recordKeeping $ task ), " runInclusionStatistics " )
178
+ expect_equal(unique(recordKeeping $ task ), " runOrphanConcepts " )
179
179
expect_true(all(recordKeeping $ cohortId %in% server $ cohortDefinitionSet $ cohortId ))
180
180
181
181
unlink(exportFolder )
0 commit comments