Add --no-flash option to rtv, fixes #478

This commit is contained in:
Donovan Glover
2018-01-28 16:58:03 -05:00
parent 3aa42845c3
commit f8ec571c3b
5 changed files with 26 additions and 7 deletions

View File

@@ -91,7 +91,8 @@ def test_config_get_args():
'--copy-config',
'--enable-media',
'--theme', 'molokai',
'--list-themes']
'--list-themes',
'--no-flash']
with mock.patch('sys.argv', ['rtv']):
config_dict = Config.get_args()
@@ -115,6 +116,7 @@ def test_config_get_args():
assert config['enable_media'] is True
assert config['theme'] == 'molokai'
assert config['list_themes'] is True
assert config['flash'] is False
def test_config_link_deprecated():
@@ -148,7 +150,8 @@ def test_config_from_file():
'enable_media': True,
'max_comment_cols': 150,
'hide_username': True,
'theme': 'molokai'}
'theme': 'molokai',
'flash': True}
bindings = {
'REFRESH': 'r, <KEY_F5>',