#NEWLINE# def test_export_metadata_output_opt( data ) : #NEWLINE# #INDENT# inputfile = str ( data . join ( 'RGB.byte.tif' ) ) #NEWLINE# outputfile = str ( data . join ( 'export.mbtiles' ) ) #NEWLINE# runner = CliRunner ( ) #NEWLINE# result = runner . invoke ( mbtiles , [ inputfile , '-o' , outputfile ] ) #NEWLINE# assert ( result . exit_code == 0 ) #NEWLINE# conn = sqlite3 . connect ( outputfile ) #NEWLINE# cur = conn . cursor ( ) #NEWLINE# cur . execute ( "select * from metadata where name == 'name'" ) #NEWLINE# assert ( cur . fetchone ( ) [ 1 ] == 'RGB.byte.tif' )