Mercurial > repos > shellac > guppy_basecaller
comparison env/lib/python3.7/site-packages/cwltool/tests/test_relocate.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 sys | |
| 2 import json | |
| 3 | |
| 4 if sys.version_info[0] < 3: | |
| 5 from StringIO import StringIO | |
| 6 else: | |
| 7 from io import StringIO | |
| 8 | |
| 9 from cwltool.main import main | |
| 10 | |
| 11 from .util import get_data, needs_docker, temp_dir | |
| 12 | |
| 13 @needs_docker | |
| 14 def test_for_910(): | |
| 15 assert main([get_data('tests/wf/910.cwl')]) == 0 | |
| 16 assert main([get_data('tests/wf/910.cwl')]) == 0 | |
| 17 | |
| 18 @needs_docker | |
| 19 def test_for_conflict_file_names(): | |
| 20 stream = StringIO() | |
| 21 | |
| 22 with temp_dir() as tmp: | |
| 23 assert main(["--debug", "--outdir", tmp, get_data('tests/wf/conflict.cwl')], stdout=stream) == 0 | |
| 24 | |
| 25 out = json.loads(stream.getvalue()) | |
| 26 assert out["b1"]["basename"] == out["b2"]["basename"] | |
| 27 assert out["b1"]["location"] != out["b2"]["location"] |
