Skip to content

Assert logging in unit tests with pytest caplog #474

@clavedeluna

Description

@clavedeluna

We have many tests that mock a module's logger and then call call_args_list to assert what was logged. Instead, we should use pytest's caplog fixture for cleaner tests.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions