Mercurial > repos > shellac > guppy_basecaller
comparison env/lib/python3.7/site-packages/cwltool/tests/test_rdfprint.py @ 0:26e78fe6e8c4 draft
"planemo upload commit c699937486c35866861690329de38ec1a5d9f783"
| author | shellac |
|---|---|
| date | Sat, 02 May 2020 07:14:21 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:26e78fe6e8c4 |
|---|---|
| 1 import os | |
| 2 import sys | |
| 3 | |
| 4 from cwltool.main import main | |
| 5 from cwltool.utils import subprocess | |
| 6 | |
| 7 from .util import get_data | |
| 8 | |
| 9 | |
| 10 def test_rdf_print(): | |
| 11 assert main(['--print-rdf', get_data('tests/wf/hello_single_tool.cwl')]) == 0 | |
| 12 | |
| 13 def test_rdf_print_unicode(): | |
| 14 """Force ASCII encoding but load UTF file with --print-rdf.""" | |
| 15 try: | |
| 16 lc_all = os.environ.get("LC_ALL", None) | |
| 17 os.environ["LC_ALL"] = "C" | |
| 18 | |
| 19 params = [sys.executable, | |
| 20 "-m", "cwltool", '--print-rdf', | |
| 21 get_data('tests/utf_doc_example.cwl')] | |
| 22 | |
| 23 assert subprocess.check_call(params) == 0 | |
| 24 finally: | |
| 25 if lc_all: | |
| 26 os.environ["LC_ALL"] = lc_all |
