Skip to content

test_missing_group_decl_first_api fails with click 8.1.8 #65

@MeggyCal

Description

@MeggyCal

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingincompatibilityIncompatibility with other functions and plugins

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions