Mercurial > repos > shellac > sam_consensus_v3
view env/lib/python3.9/site-packages/cwltool/tests/test_content_type.py @ 0:4f3585e2f14b draft default tip
"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author | shellac |
---|---|
date | Mon, 22 Mar 2021 18:12:50 +0000 |
parents | |
children |
line wrap: on
line source
from typing import Any import pydot # type: ignore from .util import get_main_output def test_content_types(caplog: Any) -> None: for _ in ("js_output.cwl", "js_output_workflow.cwl"): commands = [ "https://raw.githubusercontent.com/common-workflow-language/common-workflow-language/main/v1.0/v1.0/test-cwl-out2.cwl", "https://github.com/common-workflow-language/common-workflow-language/blob/main/v1.0/v1.0/empty.json", ] error_code, _, stderr = get_main_output(commands) found = False for record in caplog.records: if ( record.name == "salad" and "got content-type of 'text/html'" in record.message ): found = True break assert found assert error_code == 1, stderr