#NEWLINE# def test_format_short( tmpdir ) : #NEWLINE# #INDENT# outputname = str ( tmpdir . join ( 'test.jpg' ) ) #NEWLINE# runner = CliRunner ( ) #NEWLINE# result = runner . invoke ( convert , [ 'tests/data/RGB.byte.tif' , src , '-f' , 'JPEG' ] ) #NEWLINE# assert ( result . exit_code == 0 ) #NEWLINE# with rasterio . open ( outputname ) as src : #NEWLINE# #INDENT# assert ( src . driver == 'JPEG' )