Fixed test.
This commit is contained in:
@@ -37,7 +37,7 @@ def test_terminal_properties(terminal, config):
|
|||||||
with mock.patch('rtv.terminal.sys') as sys, \
|
with mock.patch('rtv.terminal.sys') as sys, \
|
||||||
mock.patch.dict('os.environ', {'DISPLAY': ''}):
|
mock.patch.dict('os.environ', {'DISPLAY': ''}):
|
||||||
sys.platform = 'darwin'
|
sys.platform = 'darwin'
|
||||||
assert terminal.display is True
|
assert terminal.display is False
|
||||||
|
|
||||||
terminal._display = None
|
terminal._display = None
|
||||||
with mock.patch.dict('os.environ', {'DISPLAY': ':0', 'BROWSER': 'w3m'}):
|
with mock.patch.dict('os.environ', {'DISPLAY': ':0', 'BROWSER': 'w3m'}):
|
||||||
|
|||||||
Reference in New Issue
Block a user