module_mocker v0.2.0 API Reference
Modules
ModuleMocker helps to mock a module during testing. ModuleMocker does not mock anything for the test, it just provide convention for mocking the module. ModuleMocker should be used to mock modules taht acesses external api or do other heavy lifting work needs to be mocked. You are responsible for defining the mock module and ModuleMocker will just provide easy way to use it and provide convention to define mock module instead of manually configuring it. Check this article on Mocking to have an idea of how ModuleMocker can be used. We can pass second parameter to give custom name to module attribute