Skip to content

Instantly share code, notes, and snippets.

@chfw
chfw / gist:4ab8b8f74a1b41d4555f
Created January 25, 2016 17:12
how to mock a global variable in a python file
@patch("module.file.BASE_PATH", 'tests/fixtures')
def test_organisation_to_es_document():
# do the test normally