-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
423 additions
and
419 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
import os | ||
import unittest | ||
|
||
import pytest | ||
from junitparser.cli import verify | ||
|
||
|
||
class Test_Cli(unittest.TestCase): | ||
def test_verify(self): | ||
files_expectedexitcodes = { | ||
"data/jenkins.xml": 1, | ||
"data/no_fails.xml": 0, | ||
"data/normal.xml": 1, | ||
} | ||
for file, expected_exitcode in files_expectedexitcodes.items(): | ||
path = os.path.join(os.path.dirname(__file__), file) | ||
self.assertEqual(verify([path]), expected_exitcode) | ||
@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 |
Oops, something went wrong.