Skip to content

Commit 7e919f6

Browse files
committed
Improve test coverage
1 parent a8113b1 commit 7e919f6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/test_numeric_id.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from os import linesep as n
2+
3+
from .util import get_data, run_with_mock_cwl_runner
4+
5+
6+
def test_include_by_number() -> None:
7+
args = [
8+
"--test",
9+
get_data("tests/test-data/exclude-tags.yml"),
10+
"-n1",
11+
]
12+
error_code, stdout, stderr = run_with_mock_cwl_runner(args)
13+
assert f"[1/3] opt-error1: Test with label{n}" in stderr
14+
assert "opt-error2" not in stderr
15+
assert "opt-error3" not in stderr

0 commit comments

Comments
 (0)