File: test_cli.py

package info (click to toggle)
junitparser 3.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 284 kB
  • sloc: python: 1,761; xml: 67; makefile: 14
file content (14 lines) | stat: -rw-r--r-- 372 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# -*- coding: utf-8 -*-

import os
import pytest
from junitparser.cli import verify


@pytest.mark.parametrize(
    "file, expected_exitcode",
    [("data/jenkins.xml", 1), ("data/no_fails.xml", 0), ("data/normal.xml", 1)],
)
def test_verify(file, expected_exitcode):
    path = os.path.join(os.path.dirname(__file__), file)
    assert verify([path]) == expected_exitcode