Skip to content

Don't use runner.invoke in tests without checking the result #552

@nathanjmcdougall

Description

@nathanjmcdougall

Motivation
CliRunner.invoke can fail silently, so we should include likes like this:

result = runner.invoke(app, ...)
assert not result.exit_code, result.stdout

Summary of desired enhancement
Add these checks where relevant.

Metadata

Metadata

Labels

blockedAnother issue is preventing progresstestingAdditions or improvements to the test suite

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions