def test_icommand_list_profiles(): set_up() settings.update({ 'path': 'append_test' }).save() Create.run(mock_options) settings.update({ 'path': 'iprofiles' }).save() cmd = ICommand(_autorun=False) cmd.settings = settings cmd.list_profiles('iprofiles') tear_down()
def test_icommand_check_settings(): cmd = ICommand(_autorun=False) cmd.settings = Settings() cmd.settings.clear() assert not cmd.check_settings()