예제 #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
예제 #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
예제 #3
0
def test_json_output_from_string():
    root = validate_junit_xml_stream(VALID_TEST_RESULT)
    assert parse_test_result(root) == EXPECTED_JSON_OUTPUT
예제 #4
0
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)
예제 #5
0
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)
예제 #6
0
def test_json_output_from_string():
    root = validate_junit_xml_stream(VALID_TEST_RESULT)
    assert ordered(parse_test_result([root])) == ordered(EXPECTED_JSON_OUTPUT)