#NEWLINE# def test_pipeline_tool_defaults( ) : #NEWLINE# #INDENT# @ jip . tool ( ) #NEWLINE# class MyTool ( ) : #NEWLINE# #INDENT# def setup( self ) : #NEWLINE# #INDENT# self . profile . threads = 2 #NEWLINE# self . profile . queue = 'Org' #NEWLINE# #UNINDENT# def get_command( self ) : #NEWLINE# #INDENT# return 'echo' #NEWLINE# #UNINDENT# #UNINDENT# @ jip . pipeline ( ) #NEWLINE# class MyPipeline ( ) : #NEWLINE# #INDENT# def pipeline( self ) : #NEWLINE# #INDENT# p = jip . Pipeline ( ) #NEWLINE# p . job ( ) . run ( 'MyTool' ) #NEWLINE# return p #NEWLINE# #UNINDENT# #UNINDENT# p = jip . Pipeline ( ) #NEWLINE# p . run ( 'MyPipeline' ) #NEWLINE# p . expand ( ) #NEWLINE# profile = jip . Profile ( ) #NEWLINE# profile . specs [ 'MyTool' ] = jip . Profile ( ) #NEWLINE# profile . apply_to_pipeline ( p ) #NEWLINE# jobs = jip . create_jobs ( p ) #NEWLINE# assert ( p [ 0 ] . threads == 2 ) #NEWLINE# assert ( jobs [ 0 ] . queue == 'Org' )