https://github.com/dbcli/mycli/pull/1152 had a side effect of breaking pytest when invoked with --verbose, this pr use monkeypatch.context so that setattr doesnt affect pytest itself.
Checklist
[ ] I've added this contribution to the changelog.md.
[x] I've added my name to the AUTHORS file (or it's already there).
See-Also: https://github.com/dbcli/mycli/pull/1152#issuecomment-2027036256
Description
https://github.com/dbcli/mycli/pull/1152 had a side effect of breaking pytest when invoked with --verbose, this pr use monkeypatch.context so that setattr doesnt affect pytest itself.
Checklist
changelog.md
.AUTHORS
file (or it's already there).