@@ -1,5 +1,5 @@
|
|||||||
language: python
|
language: python
|
||||||
dist: precise
|
dist: trusty
|
||||||
python:
|
python:
|
||||||
- 2.7
|
- 2.7
|
||||||
- 3.3
|
- 3.3
|
||||||
|
|||||||
@@ -37,7 +37,8 @@ def test_terminal_properties(terminal, config):
|
|||||||
|
|
||||||
terminal._display = None
|
terminal._display = None
|
||||||
with mock.patch('rtv.terminal.sys') as sys, \
|
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'
|
sys.platform = 'darwin'
|
||||||
assert terminal.display is True
|
assert terminal.display is True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user