Closed ocervell closed 2 months ago
Hi @ocervell.
It looks like the issue is that you are running CliRunner.invoke(cli, None, None)
instead of CliRunner().invoke(cli, None)
.
Basically, invoke()
is an instance method and the first argument is self
. You are running it as if it were a class or static method. isolation
is an attribute of a CliRunner
object, not a Group
object.
Let me know if that resolves your issue!
You are right !! My mistake... You can close this ;)
Trying to add tests for my CLI following the click guide (https://click.palletsprojects.com/en/8.1.x/testing/).
My CLI:
My test:
fails with: