Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not use mocked module in mock block #54

Closed
jclem opened this issue Oct 14, 2016 · 2 comments
Closed

Can not use mocked module in mock block #54

jclem opened this issue Oct 14, 2016 · 2 comments

Comments

@jclem
Copy link

jclem commented Oct 14, 2016

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.

@jclem
Copy link
Author

jclem commented Oct 14, 2016

It apparently works for dependencies, but not modules in the app itself. I'm not quite sure what's going on here.

@jclem
Copy link
Author

jclem commented Oct 14, 2016

Nevermind—I missed the part about with_mock mocking the entire module.

@jclem jclem closed this as completed Oct 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant