Exemple #1
0
def test_json_output_from_file():
    root = validate_junit_xml_file(VALID_TEST_RESULT_FILE)
    assert parse_test_result(root) == EXPECTED_JSON_OUTPUT
Exemple #2
0
def test_xml_file_not_found():
    with pytest.raises(JUnitXMLValidationError, match="file not found"):
        validate_junit_xml_file("nonexistent.xml")
def test_json_output_from_file():
    root = validate_junit_xml_file(VALID_TEST_RESULT_FILE)
    assert ordered(parse_test_result([root])) == ordered(EXPECTED_JSON_OUTPUT)