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)
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)
def call_main(*args): argv = ['grouper-ctl'] + list(args) return main(sys_argv=argv, start_config_thread=False)
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)
def call_main(session, *args): # type: (Session, *str) -> None argv = ["grouper-ctl"] + list(args) main(sys_argv=argv, start_config_thread=False, session=session)
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)