mitmproxy/test/mock_urwid.py

11 lines
228 B
Python
Raw Normal View History

2015-05-30 00:03:28 +00:00
import os
import sys
import mock
if os.name == "nt":
m = mock.Mock()
m.__version__ = "1.1.1"
m.Widget = mock.Mock
m.WidgetWrap = mock.Mock
sys.modules['urwid'] = m
2015-05-30 00:03:28 +00:00
sys.modules['urwid.util'] = mock.Mock()