with_mock_path: Run the DBI queries in an alternate mock directory

Description Usage Arguments Value

View source: R/mock-paths.R

Description

When testing with dbtest, wrap your tests in with_mock_path({}) to use the database fixtures located in other directories. dbtest will look for fixtures in the directory specified by the user, which can be a temporal or permanent location.

Usage

1
with_mock_path(path, expr, replace = FALSE)

Arguments

path

the alternate directory

expr

the expression to execute

replace

foobar

Value

nothing


pachamaltese/dbtest documentation built on Dec. 3, 2019, 11:08 p.m.