mirror of
https://github.com/beetbox/beets.git
synced 2026-01-02 05:52:50 +01:00
comment out some skipped tests
The *only reason* I'm doing this is so that the unittest output looks
prettier. I am pretty sure I have actual OCD. 😳
This commit is contained in:
parent
645279e022
commit
b383ce3450
1 changed files with 31 additions and 31 deletions
|
|
@ -597,37 +597,37 @@ class ConfigTest(_common.TestCase):
|
|||
ui._raw_main(['--config', cli_config_path, 'test'])
|
||||
self.assertEqual(config['anoption'].get(), 'cli overwrite')
|
||||
|
||||
@unittest.skip('Difficult to implement with optparse')
|
||||
def test_multiple_cli_config_files(self):
|
||||
cli_config_path_1 = os.path.join(self.temp_dir, 'config.yaml')
|
||||
cli_config_path_2 = os.path.join(self.temp_dir, 'config_2.yaml')
|
||||
|
||||
with open(cli_config_path_1, 'w') as file:
|
||||
file.write('first: value')
|
||||
|
||||
with open(cli_config_path_2, 'w') as file:
|
||||
file.write('second: value')
|
||||
|
||||
ui._raw_main(['--config', cli_config_path_1,
|
||||
'--config', cli_config_path_2, 'test'])
|
||||
self.assertEqual(config['first'].get(), 'value')
|
||||
self.assertEqual(config['second'].get(), 'value')
|
||||
|
||||
@unittest.skip('Difficult to implement with optparse')
|
||||
def test_multiple_cli_config_overwrite(self):
|
||||
cli_config_path = os.path.join(self.temp_dir, 'config.yaml')
|
||||
cli_overwrite_config_path = os.path.join(self.temp_dir,
|
||||
'overwrite_config.yaml')
|
||||
|
||||
with open(cli_config_path, 'w') as file:
|
||||
file.write('anoption: value')
|
||||
|
||||
with open(cli_overwrite_config_path, 'w') as file:
|
||||
file.write('anoption: overwrite')
|
||||
|
||||
ui._raw_main(['--config', cli_config_path,
|
||||
'--config', cli_overwrite_config_path, 'test'])
|
||||
self.assertEqual(config['anoption'].get(), 'cli overwrite')
|
||||
# @unittest.skip('Difficult to implement with optparse')
|
||||
# def test_multiple_cli_config_files(self):
|
||||
# cli_config_path_1 = os.path.join(self.temp_dir, 'config.yaml')
|
||||
# cli_config_path_2 = os.path.join(self.temp_dir, 'config_2.yaml')
|
||||
#
|
||||
# with open(cli_config_path_1, 'w') as file:
|
||||
# file.write('first: value')
|
||||
#
|
||||
# with open(cli_config_path_2, 'w') as file:
|
||||
# file.write('second: value')
|
||||
#
|
||||
# ui._raw_main(['--config', cli_config_path_1,
|
||||
# '--config', cli_config_path_2, 'test'])
|
||||
# self.assertEqual(config['first'].get(), 'value')
|
||||
# self.assertEqual(config['second'].get(), 'value')
|
||||
#
|
||||
# @unittest.skip('Difficult to implement with optparse')
|
||||
# def test_multiple_cli_config_overwrite(self):
|
||||
# cli_config_path = os.path.join(self.temp_dir, 'config.yaml')
|
||||
# cli_overwrite_config_path = os.path.join(self.temp_dir,
|
||||
# 'overwrite_config.yaml')
|
||||
#
|
||||
# with open(cli_config_path, 'w') as file:
|
||||
# file.write('anoption: value')
|
||||
#
|
||||
# with open(cli_overwrite_config_path, 'w') as file:
|
||||
# file.write('anoption: overwrite')
|
||||
#
|
||||
# ui._raw_main(['--config', cli_config_path,
|
||||
# '--config', cli_overwrite_config_path, 'test'])
|
||||
# self.assertEqual(config['anoption'].get(), 'cli overwrite')
|
||||
|
||||
def test_cli_config_paths_resolve_relative_to_user_dir(self):
|
||||
cli_config_path = os.path.join(self.temp_dir, 'config.yaml')
|
||||
|
|
|
|||
Loading…
Reference in a new issue