Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: how test click commands #134

Open
ppanero opened this issue Jan 18, 2022 · 0 comments
Open

cli: how test click commands #134

ppanero opened this issue Jan 18, 2022 · 0 comments
Labels
question Further information is requested

Comments

@ppanero
Copy link
Member

ppanero commented Jan 18, 2022

This is a much bigger task, but we should manage to standardize CLI testing... The problem with these two approaches:
a) The current function requires an external one and does not call the corresponding click command
b) The update cmd test can only test the exit status, no read or anything (because there are 2 app contexts? 🤔)

see test_cli.py::test_process vs test_cli.py:test_update_cmd

@ppanero ppanero added the question Further information is requested label Jan 18, 2022
@ppanero ppanero changed the title cli: how click commands cli: how test click commands Jan 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant