(config_file=None)
| 58 | |
| 59 | |
| 60 | def 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 |
no test coverage detected