#NEWLINE# @ patch ( 'cctrl.app.parse_config_variables' ) #NEWLINE# def test_add_config_no_variables_given( self , parse_config_variables ) : #NEWLINE# #INDENT# app = AppController ( None , Settings ( ) ) #NEWLINE# app . api = Mock ( ) #NEWLINE# args = Mock ( ) #NEWLINE# args . name = 'app/dep' #NEWLINE# args . force_add = False #NEWLINE# args . variables = None #NEWLINE# with self . assertRaises ( InputErrorException ) as nvg : #NEWLINE# #INDENT# app . addConfig ( args ) #NEWLINE# #UNINDENT# self . assertEqual ( '[ERROR] You must provide some variables.' , str ( nvg . exception ) ) #NEWLINE# self . assertFalse ( parse_config_variables . called ) #NEWLINE# self . assertFalse ( parse_config_variables . api . update_addon . called )