File: test_invalid_outputs.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 (17 lines) | stat: -rw-r--r-- 513 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from pathlib import Path

import schema_salad.ref_resolver

from .util import get_data, run_with_mock_cwl_runner


def test_invalid_outputs(tmp_path: Path) -> None:
    args = [
        "--test",
        schema_salad.ref_resolver.file_uri(get_data("tests/test-data/nothing.yml")),
    ]
    error_code, stdout, stderr = run_with_mock_cwl_runner(
        args, get_data("tests/test-data/dummy-executor.sh")
    )
    assert error_code == 1
    assert "0 tests passed, 2 failures, 0 unsupported features" in stderr