def test_sequential_workflow(tmp_path: Path) -> None:
    test_file = "tests/wf/count-lines1-wf.cwl"
    executor = MultithreadedJobExecutor()
    runtime_context = RuntimeContext()
    runtime_context.outdir = str(tmp_path)
    runtime_context.select_resources = executor.select_resources
    factory = get_windows_safe_factory(
        executor=executor, runtime_context=runtime_context
    )
    echo = factory.make(get_data(test_file))
    file_contents = {"class": "File", "location": get_data("tests/wf/whale.txt")}
    assert echo(file1=file_contents) == {"count_output": 16}
Exemple #2
0
 def test_sequential_workflow(self):
     test_file = "tests/wf/count-lines1-wf.cwl"
     executor = MultithreadedJobExecutor()
     runtime_context = RuntimeContext()
     runtime_context.select_resources = executor.select_resources
     factory = get_windows_safe_factory(
         executor=executor, runtime_context=runtime_context)
     echo = factory.make(get_data(test_file))
     self.assertEqual(
         echo(file1={"class": "File",
                     "location": get_data("tests/wf/whale.txt")}),
         {"count_output": 16})
 def test_sequential_workflow(self):
     test_file = "tests/wf/count-lines1-wf.cwl"
     executor = MultithreadedJobExecutor()
     runtime_context = RuntimeContext()
     runtime_context.select_resources = executor.select_resources
     factory = get_windows_safe_factory(executor=executor,
                                        runtime_context=runtime_context)
     echo = factory.make(get_data(test_file))
     self.assertEqual(
         echo(file1={
             "class": "File",
             "location": get_data("tests/wf/whale.txt")
         }), {"count_output": 16})
Exemple #4
0
def test_sequential_workflow(tmpdir):
    load_tool.loaders = {}
    test_file = "tests/wf/count-lines1-wf.cwl"
    executor = MultithreadedJobExecutor()
    runtime_context = RuntimeContext()
    runtime_context.outdir = str(tmpdir)
    runtime_context.select_resources = executor.select_resources
    factory = get_windows_safe_factory(
        executor=executor, runtime_context=runtime_context)
    echo = factory.make(get_data(test_file))
    file_contents = {"class": "File",
                     "location": get_data("tests/wf/whale.txt")}
    assert  echo(file1=file_contents) == {"count_output": 16}