Last active
March 17, 2020 15:34
-
-
Save aawgit/62e10f02f267d9560661d2fbfa05cc54 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 | |
def test_main_func_mocked(monkeypatch): | |
monkeypatch.setattr('main_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