Skip to content

Cannot use testthat::with_mocked_bindings() #11

Description

@ak-finccam

Right now, when I load an R package with loadfast, I cannot use testthat::with_mocked_bindings(). It will tell me that there are no packages loaded with pkgload.

I would like to use testthat::with_mocked_bindings() so that I can mock functions for a certain block of code.

We need to figure out a way to do this. The first step should be reproducing the issue. The next step is thinking about solutions: Can we extend loadfast so that this works or should we provide a separate with_mock()-like function. In this case, this function should at best be compatible with devtools::load_all() as well as loadfast.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions