#NEWLINE# @ fixture ( scope = 'module' ) #NEWLINE# def protocol_real( ) : #NEWLINE# #INDENT# endpoint = os . environ . get ( 'WINRM_ENDPOINT' , None ) #NEWLINE# transport = os . environ . get ( 'WINRM_TRANSPORT' , None ) #NEWLINE# username = os . environ . get ( 'WINRM_USERNAME' , None ) #NEWLINE# password = os . environ . get ( 'WINRM_PASSWORD' , None ) #NEWLINE# if endpoint : #NEWLINE# #INDENT# settings = { #NEWLINE# #INDENT# 'endpoint' : endpoint , #NEWLINE# #UNINDENT# } #NEWLINE# if transport : #NEWLINE# #INDENT# settings [ 'transport' ] = transport #NEWLINE# #UNINDENT# if username : #NEWLINE# #INDENT# settings [ 'username' ] = username #NEWLINE# #UNINDENT# if password : #NEWLINE# #INDENT# settings [ 'password' ] = password #NEWLINE# #UNINDENT# from winrm.protocol import Protocol #NEWLINE# protocol = Protocol ( ** settings ) #NEWLINE# return protocol #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# skip ( 'WINRM_ENDPOINT environment variable was not set. Integration tests will be skipped' )