Mercurial > repos > guerler > springsuite
comparison planemo/lib/python3.7/site-packages/cwltool/tests/test_procgenerator.py @ 0:d30785e31577 draft
"planemo upload commit 6eee67778febed82ddd413c3ca40b3183a3898f1"
author | guerler |
---|---|
date | Fri, 31 Jul 2020 00:18:57 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:d30785e31577 |
---|---|
1 import pytest | |
2 import os | |
3 from .util import get_data, windows_needs_docker | |
4 from cwltool.main import main | |
5 | |
6 @windows_needs_docker | |
7 def test_missing_enable_ext(): | |
8 # Requires --enable-ext and --enable-dev | |
9 try: | |
10 opt = os.environ.get("CWLTOOL_OPTIONS") | |
11 | |
12 if "CWLTOOL_OPTIONS" in os.environ: | |
13 del os.environ["CWLTOOL_OPTIONS"] | |
14 assert main([get_data('tests/wf/generator/zing.cwl'), | |
15 "--zing", "zipper"]) == 1 | |
16 | |
17 assert main(["--enable-ext", "--enable-dev", | |
18 get_data('tests/wf/generator/zing.cwl'), | |
19 "--zing", "zipper"]) == 0 | |
20 | |
21 os.environ["CWLTOOL_OPTIONS"] = "--enable-ext --enable-dev" | |
22 assert main([get_data('tests/wf/generator/zing.cwl'), | |
23 "--zing", "zipper"]) == 0 | |
24 finally: | |
25 if opt is not None: | |
26 os.environ["CWLTOOL_OPTIONS"] = opt | |
27 else: | |
28 del os.environ["CWLTOOL_OPTIONS"] |