Ejemplo n.º 1
0
def test_cpp(capsys):
    args = Namespace(
        output=tempfile.gettempdir(),
        user_lib_dir=False,
        grc_files=[path.join(path.dirname(__file__), 'resources', 'test_cpp.grc')],
        run=True
    )

    main(args)

    out, err = capsys.readouterr()
    assert not err
Ejemplo n.º 2
0
def test_compiler(capsys):
    args = Namespace(
        output=tempfile.gettempdir(),
        user_lib_dir=False,
        grc_files=[path.join(path.dirname(__file__), 'resources', 'test_compiler.grc')],
        run=True
    )

    main(args)

    out, err = capsys.readouterr()
    assert not err
Ejemplo n.º 3
0
def test_compiler(capsys):
    args = Namespace(
        output=tempfile.gettempdir(),
        user_lib_dir=False,
        grc_files=[
            path.join(path.dirname(__file__), "resources", "test_compiler.grc")
        ],
        run=True,
    )

    main(args)

    out, err = capsys.readouterr()
    assert not err