Merge pull request #334 from michael-lazar/osx_display
Ignore OSX $DISPLAY variable, default to true. #166
This commit is contained in:
commit
0767c8fcab
2 files changed
+6
-10
No files matched your search
@@ -38,7 +38,7 @@ def test_terminal_properties(terminal, config):
|
||||
with mock.patch('rtv.terminal.sys') as sys, \
|
||||
mock.patch.dict('os.environ', {'DISPLAY': ''}):
|
||||
sys.platform = 'darwin'
|
||||
assert terminal.display is False
|
||||
assert terminal.display is True
|
||||
|
||||
terminal._display = None
|
||||
with mock.patch.dict('os.environ', {'DISPLAY': ':0', 'BROWSER': 'w3m'}):
|
||||
|
||||
Reference in new issue
Block a user