Mercurial > repos > shellac > guppy_basecaller
view env/lib/python3.7/site-packages/cwltool/tests/test_rdfprint.py @ 3:758bc20232e8 draft
"planemo upload commit 2a0fe2cc28b09e101d37293e53e82f61762262ec"
author | shellac |
---|---|
date | Thu, 14 May 2020 16:20:52 -0400 |
parents | 26e78fe6e8c4 |
children |
line wrap: on
line source
import os import sys from cwltool.main import main from cwltool.utils import subprocess from .util import get_data def test_rdf_print(): assert main(['--print-rdf', get_data('tests/wf/hello_single_tool.cwl')]) == 0 def test_rdf_print_unicode(): """Force ASCII encoding but load UTF file with --print-rdf.""" try: lc_all = os.environ.get("LC_ALL", None) os.environ["LC_ALL"] = "C" params = [sys.executable, "-m", "cwltool", '--print-rdf', get_data('tests/utf_doc_example.cwl')] assert subprocess.check_call(params) == 0 finally: if lc_all: os.environ["LC_ALL"] = lc_all