Beispiel #1
0
def test_check_invalid():

    args = af.get_args(["-t 'A B C()'", "-c", "-o teste.nf"])
    sys.argv.append(1)

    with pytest.raises(SystemExit):
        af.run(args)
Beispiel #2
0
def test_build_file_2(tmp):

    p = os.path.join(os.path.abspath(tmp), "teste.nf")
    sys.argv.append(1)

    args = af.get_args(["-t integrity_coverage fastqc", "-o", "{}".format(p),
                        "--include-templates"])
    af.run(args)
Beispiel #3
0
def test_build_file(tmp):

    p = os.path.join(os.path.abspath(tmp), "teste.nf")
    sys.argv.append(1)

    args = af.get_args(["-t integrity_coverage fastqc", "-o", "{}".format(p)])
    af.run(args)

    assert sorted(os.listdir(tmp)) == ["containers.config", "resources.config",
                                       "teste.html", "teste.nf"]
Beispiel #4
0
def test_list_long():

    args = af.get_args(["-L"])

    with pytest.raises(SystemExit):
        af.run(args)
Beispiel #5
0
def test_list_short():

    args = af.get_args(["-l"])

    with pytest.raises(SystemExit):
        af.run(args)