#NEWLINE# def test_koji_promote_failed_build( self , tmpdir , os_env ) : #NEWLINE# #INDENT# session = MockedClientSession ( '' ) #NEWLINE# ( tasker , workflow ) = mock_environment ( tmpdir , session = session , build_process_failed = True , name = 'ns/name' , version = '1.0' , release = '1' ) #NEWLINE# runner = create_runner ( tasker , runner ) #NEWLINE# runner . run ( ) #NEWLINE# assert ( not hasattr ( session , 'metadata' ) )