Created
February 21, 2017 20:03
-
-
Save tomdottom/afaf3a45e22dd000e9d23249dd74b0a8 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
import mock | |
import sys | |
# Create a mock `uwsgi` module so that | |
# import uwsgi does not throw an ImportError | |
uwsgi = mock.MagicMock() | |
sys.modules.setdefault('uwsgi', uwsgi) | |
uwsgidecorators = mock.MagicMock() | |
uwsgidecorators.postfork = lambda x: x | |
sys.modules.setdefault('uwsgidecorators', uwsgidecorators) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment