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

test_missing_group_decl_first_api fails with click 8.1.8 #65

Open
MeggyCal opened this issue Jan 16, 2025 · 0 comments
Open

test_missing_group_decl_first_api fails with click 8.1.8 #65

MeggyCal opened this issue Jan 16, 2025 · 0 comments

Comments

@MeggyCal
Copy link

It looks like the new click adds the --help option everywhere, maybe it could be related to pallets/click#2563?

Anyway, error message is unsurprisingly:

[   12s] ______________________ test_missing_group_decl_first_api _______________________
[   12s] 
[   12s] runner = <click.testing.CliRunner object at 0x7fda48f661e0>
[   12s] 
[   12s]     def test_missing_group_decl_first_api(runner):
[   12s]         @click.command()
[   12s]         @click.option('--hello1')
[   12s]         @optgroup.option('--foo')
[   12s]         @optgroup.option('--bar')
[   12s]         @click.option('--hello2')
[   12s]         def cli(**params):
[   12s]             pass
[   12s]     
[   12s]         result = runner.invoke(cli, ['--help'])
[   12s]     
[   12s] >       assert result.exception
[   12s] E       assert None
[   12s] E        +  where None = <Result okay>.exception
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant