<commit_before>from sequana.reporting.report_main import SequanaReport
from sequana.reporting.report_main import BaseReport    


def test_report_base():
    br = BaseReport("main/index.html")
    try:
        br.parse()
        assert False
    except:
        assert True

def test_report():

    from sequana import sequana_data
    stats = sequana_data("test_snakemake_stats.txt", "testing")

    from sequana import Module
    module = Module('phix_removal')
    

    r = SequanaReport(snakefile=module.snakefile, configfile=module.config,<commit_msg>update test<commit_after>from sequana.reporting.report_main import SequanaReport
from sequana.reporting.report_main import BaseReport    


def test_report_base():
    br = BaseReport("main/index.html")
    try:
        br.parse()
        assert False
    except:
        assert True

def test_report():

    from sequana import sequana_data
    stats = sequana_data("test_snakemake_stats.txt", "testing")

    from sequana import Module
    module = Module('quality_control')
   
    class DummyManager(object):
        sample = {"dummy":"dummy"}
    manager = DummyManager()

    r = SequanaReport(manager, "dummy", snakefile=module.snakefile, configfile=module.config,
{'fraction_non_alphanumeric': 0.09120521172638436, 'fraction_numerical': 0.0, 'mean_word_length': 3.5687732342007434, 'pattern_counts': {'":': 1, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2066818', 'n_tokens_mistral': 372, 'n_tokens_neox': 359, 'n_words': 82}