File: test_argparse.py

package info (click to toggle)
cwltest 2.5.20241122133319-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 800 kB
  • sloc: python: 2,700; makefile: 124; sh: 89
file content (13 lines) | stat: -rw-r--r-- 372 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
from cwltest.argparser import arg_parser


def test_arg() -> None:
    """Basic test of the argparse."""
    parser = arg_parser()
    parsed = parser.parse_args(
        ["--test", "test_name", "-n", "52", "--tool", "cwltool", "-j", "4"]
    )
    assert parsed.test == "test_name"
    assert parsed.n == "52"
    assert parsed.tool == "cwltool"
    assert parsed.j == 4