#NEWLINE# @ pytest . fixture #NEWLINE# def cls_selector_fixture( self , request , cls_selector_fn_ , cls_method_fn_ , part_load_params , CustomPartClass_ , part_of_custom_type_ ) : #NEWLINE# #INDENT# def reset_part_class_selector( ) : #NEWLINE# #INDENT# PartFactory . part_class_selector = original_part_class_selector #NEWLINE# #UNINDENT# original_part_class_selector = PartFactory . part_class_selector #NEWLINE# request . addfinalizer ( reset_part_class_selector ) #NEWLINE# return ( cls_method_fn_ , part_load_params , CustomPartClass_ , part_of_custom_type_ )