python-cli-test-helpers icon indicating copy to clipboard operation
python-cli-test-helpers copied to clipboard

Useful helpers for writing tests for your Python CLI program.

Results 11 python-cli-test-helpers issues
Sort by recently updated
recently updated
newest added

Python's `argparse` module is [very well documented](https://docs.python.org/3/library/argparse.html#help), but it's still difficult to get started and implement more advanced use cases, later. Hence, the [example project](https://github.com/painless-software/python-cli-test-helpers/tree/main/examples) in this repository, while staying...

enhancement

[Fire](https://google.github.io/python-fire/) seems like the most straight-forward way to turn Python code into a CLI application. See the [feature comparison](https://www.golinuxcloud.com/python-argparse/#Comparison_with_Other_Libraries_for_Command-Line_Parsing) (argparse, getopt, click, fire) in a recent blog post. ➜ If...

enhancement
question

This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more.[View this repository on the Mend.io Web Portal](https://developer.mend.io/github/painless-software/python-cli-test-helpers). ## Config Migration Needed - [ ]...

Currently, the example demonstrate using the package's `shell` command to verify the existence of an entrypoint script. Another way to perform the verification would be [`shutil.which`](https://docs.python.org/3/library/shutil.html#shutil.which), which is a platform-independent...

enhancement

An alternative to using [docopt-ng](https://pypi.org/project/docopt-ng/), or just [docopt](https://pypi.org/project/docopt/), may be [docopt-dispatch](https://pypi.org/project/docopt-dispatch/). It makes it largely unnecessary to implement argument dispatching logic on your own and hence renders the [Docopt CLI...

good first issue

At PyCon 23 I was suggested :tv: [a video](https://www.youtube.com/watch?v=sv46294LoP8&t=6m) by @asottile who shows how to easily get back the control that `argparse` takes away from you. Two tricks, which ultimately...

documentation
enhancement
good first issue

The [testfixtures](https://pypi.org/project/testfixtures/) package looks like a helpful project for working with fixtures. It may be worth: - [ ] mentioning it in our [package documentation](https://python-cli-test-helpers.readthedocs.io/), - [ ] demonstrating it...

documentation
enhancement
help wanted

Developers who are used to using type hints writing Python code may love [Typer](https://pypi.org/project/typer/), which is somewhat "Click with type hints". ➜ If **\*\* YOU \*\*** are interested in a...

enhancement
question

The original [docopt](http://docopt.org/) implementation supports default values, but it doesn't support types including [choices](https://docs.python.org/3/library/argparse.html#choices), let alone type validation. There are two alternatives for that: * [Manual schema validation](https://github.com/docopt/docopt/blob/master/examples/validation_example.py), see also...

enhancement
good first issue
help wanted

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [python](https://redirect.github.com/actions/python-versions) | uses-with | minor | `3.12` -> `3.13` | --- ### Release...