#NEWLINE# @ pytest . mark . skipif ( ( pygit2 is None ) , reason = 'pygit2 required for this test' ) #NEWLINE# @ pytest . mark . parametrize ( 'labelval' , [ "'$RELEASE'" , "'${RELEASE}'" , '\\$RELEASE' , "'\\$RELEASE'" , '"\\$RELEASE"' , '\\${RELEASE}' , "'\\${RELEASE}'" , '"\\${RELEASE}"' ] ) #NEWLINE# def test_bump_release_indirect_incorrect( tmpdir , labelval ) : #NEWLINE# #INDENT# dflines = [ 'FROM fedora\n' , 'ENV RELEASE=1\n' , 'LABEL Release={0}\n' . format ( labelval ) ] #NEWLINE# with DFWithRelease ( lines = dflines ) as ( df_path , commit ) : #NEWLINE# #INDENT# ( dummy_workflow , dummy_args , runner ) = prepare ( tmpdir , df_path , commit ) #NEWLINE# with pytest . raises ( PluginFailedException ) : #NEWLINE# #INDENT# runner . run ( ) #NEWLINE# #UNINDENT# assert ( DockerfileParser ( df_path ) . lines == dflines )