#NEWLINE# def test_export_dump( data ) : #NEWLINE# #INDENT# inputfile = str ( data . join ( 'RGB.byte.tif' ) ) #NEWLINE# outputfile = str ( data . join ( 'export.mbtiles' ) ) #NEWLINE# dumpdir = pytest . ensuretemp ( 'dump' ) #NEWLINE# runner = CliRunner ( ) #NEWLINE# result = runner . invoke ( mbtiles , [ inputfile , outputfile , '--image-dump' , str ( dumpdir ) ] ) #NEWLINE# assert ( result . exit_code == 0 ) #NEWLINE# assert ( len ( os . listdir ( str ( dumpdir ) ) ) == 6 )