Skip to content

Commit

Permalink
RtD mock wx
Browse files Browse the repository at this point in the history
  • Loading branch information
txemavs committed Mar 28, 2018
1 parent b0b10dc commit c76e4df
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/adata/gui/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ def __getitem__(self, key):
PATH_ICON = os.path.join(PATH_IMAGE, 'icon')
BRD = 8
BRB = 5
EXA = wx.EXPAND|wx.ALL
try:
EXA = wx.EXPAND|wx.ALL
except:
# Mock
EXA = 8432

POS = wx.DefaultPosition
SIZE = wx.DefaultSize

Expand Down
12 changes: 12 additions & 0 deletions src/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@
import datetime
import subprocess

from mock import Mock
sys.modules['wx'] = Mock()
sys.modules['wx.adv'] = Mock()
sys.modules['wx.lib'] = Mock()
sys.modules['wx.lib.buttons'] = Mock()
sys.modules['wx.lib.pubsub'] = Mock()
sys.modules['wx.lib.masked'] = Mock()
sys.modules['wx.lib.wordwrap'] = Mock()




project = u'Adata'
copyright = u'2018, Txema Vicente'
version = '0.1'
Expand Down

0 comments on commit c76e4df

Please sign in to comment.