def test_docker_required(schema_ext11: Names) -> None: # Docker required, MPI hinted lc, rc, tool = mk_tool(schema_ext11, [], reqs=[containerReq], hints=[mpiReq]) clt = CommandLineTool(tool, lc) jr = clt.make_job_runner(rc) assert jr is cwltool.docker.DockerCommandLineJob
def test_docker_mpi_both_hinted(schema_ext11: Names) -> None: # Both hinted - error with pytest.raises(cwltool.errors.UnsupportedRequirement): lc, rc, tool = mk_tool(schema_ext11, [], hints=[mpiReq, containerReq]) clt = CommandLineTool(tool, lc) jr = clt.make_job_runner(rc)
def test_udocker(schema_ext11: Names) -> None: lc, rc, tool = mk_tool(schema_ext11, ["--udocker"], reqs=[mpiReq, containerReq]) clt = CommandLineTool(tool, lc) jr = clt.make_job_runner(rc) assert jr is cwltool.udocker.UDockerCommandLineJob
def test_singularity(schema_ext11: Names) -> None: lc, rc, tool = mk_tool(schema_ext11, ["--singularity"], reqs=[mpiReq, containerReq]) clt = CommandLineTool(tool, lc) jr = clt.make_job_runner(rc) assert jr is cwltool.singularity.SingularityCommandLineJob