context("check the absence of duplicated rows in all main tables")
test_that("there are duplicated rows in the table", {
for (table in c("musicians", "bands", "events")) {
expect_equal(nrow(dbReadTable(getConnectionToDB(), table) %>% select(-id)),
nrow(distinct(
dbReadTable(getConnectionToDB(), table) %>% select(-id)
)))
}
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.