Fix OSX mock on ubuntu test systems

This commit is contained in:
Michael Lazar
2017-08-07 00:01:02 -04:00
parent bbd2244cc4
commit 5aa754b9be

View File

@@ -37,7 +37,8 @@ def test_terminal_properties(terminal, config):
terminal._display = None
with mock.patch('rtv.terminal.sys') as sys, \
mock.patch.dict('os.environ', {'DISPLAY': ''}):
mock.patch('os.environ', {'DISPLAY': ''}), \
mock.patch('webbrowser._tryorder', new=[]):
sys.platform = 'darwin'
assert terminal.display is True