Can not use mocked module in mock block
jclem opened this issue · comments
See this repository. The documentation of mock implies that a mocked module can be called in the mock block (e.g. to test a function of that module that calls the mocked function). However, doing so results in a module Foo is not available
error.
It apparently works for dependencies, but not modules in the app itself. I'm not quite sure what's going on here.
Nevermind—I missed the part about with_mock
mocking the entire module.