Skip to content

Commit

Permalink
add QtWidgets, QtCore, QtGui to the mocked modules
Browse files Browse the repository at this point in the history
  • Loading branch information
jborbely committed Aug 31, 2017
1 parent cd194ed commit 9d60bda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Mock(MagicMock):
def __getattr__(cls, name):
return MagicMock()

MOCK_MODULES = ['PyQt5']
MOCK_MODULES = ['PyQt5', 'PyQt5.QtWidgets', 'PyQt5.QtCore', 'PyQt5.QtGui']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

else:
Expand Down

0 comments on commit 9d60bda

Please sign in to comment.