-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
3 changed files
with
54 additions
and
8 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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
- job: v1.0/cat-job.json | ||
output: {} | ||
tool: return-0.cwl | ||
doc: | | ||
Test with | ||
label | ||
label: opt-error | ||
tags: [ js, init_work_dir ] | ||
- job: v1.0/cat-job.json | ||
output: {} | ||
tool: return-0.cwl | ||
doc: | | ||
Test without | ||
label | ||
tags: [ js, init_work_dir ] |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import os | ||
from os import linesep as n | ||
from pathlib import Path | ||
|
||
from .util import run_with_mock_cwl_runner, get_data | ||
import defusedxml.ElementTree as ET | ||
|
||
|
||
def test_run(): | ||
args = ["--test", get_data("tests/test-data/multi-lined-doc.yml")] | ||
error_code, stdout, stderr = run_with_mock_cwl_runner(args) | ||
assert f"Test [1/2] opt-error: Test with label{n}" in stderr | ||
assert f"Test [2/2] Test without label{n}" in stderr | ||
|
||
|
||
def test_list(): | ||
args = ["--test", get_data("tests/test-data/multi-lined-doc.yml"), "-l"] | ||
error_code, stdout, stderr = run_with_mock_cwl_runner(args) | ||
assert f"[1] opt-error: Test with label{n}" in stdout | ||
assert f"[2] Test without label{n}" in stdout |