File: test_junitparser_render.py

package info (click to toggle)
junit2html 31.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 576 kB
  • sloc: xml: 3,208; python: 1,023; makefile: 6; sh: 5
file content (18 lines) | stat: -rw-r--r-- 445 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""
Test that we can load all our input files without error
"""
import pytest
from . import inputfiles
from junit2htmlreport import render, parserimpl


@pytest.mark.parametrize("filename", inputfiles.get_reports())
def test_load(filename):
    report = parserimpl.load_report(inputfiles.get_filepath(filename))
    assert report is not None

    doc = render.HTMLReport()
    doc.load(report, filename)

    output = str(doc)
    assert output