Last active
March 13, 2020 19:27
-
-
Save aawgit/431a7126de7ab9a6ba8638a2b76aa871 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from main_module import main_func, main_func_2 | |
def test_main_func(monkeypatch): | |
monkeypatch.setattr('sub_module.service_func', lambda : 'mocked result') | |
assert main_func() == 'mocked result' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment