MCPcopy Index your code
hub / github.com/aws/aws-cli / runner

Function runner

tests/functional/docs/test_help_output.py:60–72  ·  view source on GitHub ↗
(config_file=None)

Source from the content-addressed store, hash-verified

58
59
60def runner(config_file=None):
61 runner = CLIRunner()
62
63 # Add the PATH to the environment variables so that that posix help
64 # renderers can find either the groff or mandoc executables required to
65 # render the help pages for posix environments
66 if "PATH" in os.environ:
67 runner.env["PATH"] = os.environ["PATH"]
68
69 if config_file is not None:
70 runner.env['AWS_CONFIG_FILE'] = config_file
71
72 return runner
73
74
75@pytest.fixture

Callers 2

runner_urlFunction · 0.85
runner_browserFunction · 0.85

Calls 1

CLIRunnerClass · 0.90

Tested by

no test coverage detected