#NEWLINE# def resolve_test_id( self , test_config , taurus_config , rfiles ) : #NEWLINE# #INDENT# proj_name = self . parameters . get ( 'project' , self . settings . get ( 'project' , None ) ) #NEWLINE# if isinstance ( proj_name , ( int , float ) ) : #NEWLINE# #INDENT# proj_id = int ( proj_name ) #NEWLINE# self . engine . log . debug ( 'Treating project name as ID: %s' , proj_id ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( proj_name is not None ) : #NEWLINE# #INDENT# proj_id = self . client . project_by_name ( proj_name ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# proj_id = None #NEWLINE# #UNINDENT# #UNINDENT# self . test_name = self . parameters . get ( 'test' , self . settings . get ( 'test' , self . default_test_name ) ) #NEWLINE# return self . client . test_by_name ( self . test_name , test_config , taurus_config , rfiles , proj_id )