Example #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
Example #2
0
def test_json_output_from_byte_stream(encoding):
    root = validate_junit_xml_stream(bytes(VALID_TEST_RESULT, encoding))
    assert parse_test_result(root) == EXPECTED_JSON_OUTPUT
Example #3
0
def test_json_output_from_string():
    root = validate_junit_xml_stream(VALID_TEST_RESULT)
    assert parse_test_result(root) == EXPECTED_JSON_OUTPUT
def test_json_output_from_archive():
    roots = validate_junit_xml_archive(VALID_TEST_RESULT_ARCHIVE)
    assert ordered(parse_test_result(roots)) == ordered(EXPECTED_JSON_OUTPUT)
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)
def test_json_output_from_string():
    root = validate_junit_xml_stream(VALID_TEST_RESULT)
    assert ordered(parse_test_result([root])) == ordered(EXPECTED_JSON_OUTPUT)