Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests: Use monkeypatch.context to avoid side effects on pytest #1153

Merged
merged 1 commit into from
Mar 31, 2024

Conversation

parona-source
Copy link
Contributor

@parona-source parona-source commented Mar 29, 2024

  • Otherwise this mocked attribute would affect pytest negatively when running tests with --verbose.

See-Also: #1152 (comment)

Description

#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.
  • I've added my name to the AUTHORS file (or it's already there).

@parona-source
Copy link
Contributor Author

Test fixes aren't included in the changelog I presume?

Don't see any explicit note about what contribution should be listed in the changelog but it appears test fixes aren't included.

@parona-source parona-source mentioned this pull request Mar 29, 2024
2 tasks
* Otherwise this mocked attribute would affect pytest negatively when
  running tests with --verbose.

See-Also: dbcli#1152 (comment)
Signed-off-by: Alfred Wingate <[email protected]>
@amjith amjith merged commit eabe132 into dbcli:main Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants