Add monochrome option, chmod 664 when copying config.

This commit is contained in:
Michael Lazar
2016-04-12 15:56:09 -07:00
parent 95d37ecf55
commit b72b7965c1
6 changed files with 21 additions and 8 deletions

View File

@@ -53,9 +53,10 @@ def test_config_get_args():
'--log', 'logfile.log',
'--config', 'configfile.cfg',
'--ascii',
'--monochrome',
'--non-persistent',
'--clear-auth',
'--copy-config']
'--copy-config',]
with mock.patch('sys.argv', ['rtv']):
config_dict = Config.get_args()
@@ -67,6 +68,7 @@ def test_config_get_args():
config = Config(**config_dict)
assert config['ascii'] is True
assert config['monochrome'] is True
assert config['subreddit'] == 'cfb'
assert config['log'] == 'logfile.log'
assert config['ascii'] is True
@@ -82,6 +84,7 @@ def test_config_from_file():
args = {
'ascii': True,
'monochrome': True,
'persistent': False,
'clear_auth': True,
'log': 'logfile.log',