Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure return code non-zero on cli error (#3499)
After inspection, only the `shell_completion` did not use click methods to report errors. Fixed and added/updated tests for both internally detected errors. ## 📝 Summary Fixes #3476 ## 🔍 Description of Changes After code inspection, only the `shell_completion` did not use click methods to report errors. Fixed and added/updated tests for both internally detected errors. ```bash ❯ pytest -p no:warnings tests/_cli/test_cli.py::test_shell_completion ===================================================== test session starts ===================================================== platform win32 -- Python 3.13.0, pytest-8.3.4, pluggy-1.5.0 rootdir: C:\Users\hwine\marimo configfile: pyproject.toml plugins: anyio-4.8.0 collected 6 items tests\_cli\test_cli.py ...... [100%] ===================================================== 6 passed in 14.19s ====================================================== ``` ## 📋 Checklist - [x] I have read the [contributor guidelines](https://github.com/marimo-team/marimo/blob/main/CONTRIBUTING.md). - [ ] For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on [Discord](https://marimo.io/discord?ref=pr), or the community [discussions](https://github.com/marimo-team/marimo/discussions) (Please provide a link if applicable). - [x] I have added tests for the changes made. - [x] I have run the code and verified that it works as expected. ## 📜 Reviewers @mscolnick
- Loading branch information