from sequana import sequana_data, bedtools
from sequana.utils.datatables_js import DataTable, DataTableFunction

def test_datatables():
        bed = bedtools.GenomeCov(sequana_data("JB409847.cov.csv"),
                                 sequana_data("JB409847.gbk"))
        rois = bed[0].get_roi()
        rois.df['link'] = 'test'
        datatable_js = DataTableFunction(rois.df, 'roi')
        datatable_js.set_links_to_column('link', 'start')
        datatable_js.datatable_options = {'scrollX': 'true',
                                          'pageLength': 15,
                                          'scrollCollapse' : 'true',
                                          'dom': 'Bfrtip',
                                          'buttons': ['copy', 'csv']}
        datatable = DataTable(rois.df, 'rois', datatable_js)
        html_table = datatable.create_datatable(index=False,
                                                float_format='%.3g')

@@ -871,69 +871,8 @@
 ble(
-index=False,%0A                                                
 floa

fix test