#NEWLINE# def test_export_tiles( 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 , outputfile ] ) #NEWLINE# assert ( result . exit_code == 0 ) #NEWLINE# conn = sqlite3 . connect ( outputfile ) #NEWLINE# cur = conn . cursor ( ) #NEWLINE# cur . execute ( 'select * from tiles' ) #NEWLINE# assert ( len ( cur . fetchall ( ) ) == 6 )