Ejemplo n.º 1
0
def call_main(session, tmpdir, *args):
    # type: (Session, LocalPath, *str) -> None
    """Legacy test driver, use run_ctl instead for all new code."""
    config_path = src_path("config", "test.yaml")
    argv = ["grouper-ctl", "-c", config_path, "-d",
            db_url(tmpdir)] + list(args)
    main(sys_argv=argv, session=session)
Ejemplo n.º 2
0
def run_ctl(setup, *args):
    # type: (SetupTest, *str) -> None
    argv = [
        "grouper-ctl",
        "-c",
        src_path("config", "dev.yaml"),
        "-d",
        setup.settings.database,
    ] + list(args)
    main(sys_argv=argv, session=setup.session)
Ejemplo n.º 3
0
def call_main(*args):
    argv = ['grouper-ctl'] + list(args)
    return main(sys_argv=argv, start_config_thread=False)
Ejemplo n.º 4
0
def call_main(*args):
    argv = ['grouper-ctl'] + list(args)
    with patch('grouper.ctl.main.load_plugins'):
        return main(sys_argv=argv, start_config_thread=False)
Ejemplo n.º 5
0
def call_main(session, *args):
    # type: (Session, *str) -> None
    argv = ["grouper-ctl"] + list(args)
    main(sys_argv=argv, start_config_thread=False, session=session)
Ejemplo n.º 6
0
def run_ctl(setup, *args):
    # type: (SetupTest, *str) -> None
    argv = ["grouper-ctl"] + list(args)
    main(sys_argv=argv, start_config_thread=False, session=setup.session)