def test_run_sysexit(argv): with buildenv(argv=argv): run()
def test_run_by_config(cfg): with buildenv(argv=['-c', cfg]): run()
def test_run_by_argv(argv, capsys): with buildenv(argv=argv): run()
def test_deprecated(argv): with buildenv(argv=argv): with pytest.warns(GenPACDeprecationWarning): run()