Created
January 25, 2016 17:12
-
-
Save chfw/4ab8b8f74a1b41d4555f to your computer and use it in GitHub Desktop.
how to mock a global variable in a python file
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
@patch("module.file.BASE_PATH", 'tests/fixtures') | |
def test_organisation_to_es_document(): | |
# do the test normally | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks