#NEWLINE# def test_koji_promote_no_build_metadata( self , tmpdir , monkeypatch , os_env ) : #NEWLINE# #INDENT# ( tasker , workflow ) = mock_environment ( tmpdir , name = 'ns/name' , version = '1.0' , release = '1' ) #NEWLINE# runner = create_runner ( tasker , workflow ) #NEWLINE# monkeypatch . setenv ( 'BUILD' , json . dumps ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) #NEWLINE# with pytest . raises ( PluginFailedException ) : #NEWLINE# #INDENT# runner . run ( )