Skip to content

Cannot test Commdn groups with click.testing.CliRunner #267

@kissgyorgy

Description

@kissgyorgy

When calling CliRunner.invoke() on a subcommand with parameters and extra arguments, the extra arguments don't get passed because those are not handled by Command and BaseCommand.

There is a call to Command.ini with extra args in Multicommand but Command doesn't handle the passed in optional keywords.

I don't know how to solve this.

Here is the first call with runner.invoke which causes the problem:
https://github.com/mitsuhiko/click/blob/master/click/testing.py#L257

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions