-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
plugin: monkeypatchrelated to the monkeypatch builtin pluginrelated to the monkeypatch builtin plugintype: docsdocumentation improvement, missing or needing clarificationdocumentation improvement, missing or needing clarification
Description
I'm working on a codebase where tests use a mixture of mock.patch
and pytest's monkeypatch
, seemingly based on authors' personal preferences.
The official docs for the latter, https://docs.pytest.org/en/latest/monkeypatch.html, refer to a blog post that's nearing its 10th anniversary; meanwhile the earlier made it into Python proper.
I wonder if there's official advice, like "use X", or perhaps "if you need feature Y, use Z" to choose between the two.
wimglenn, kevinjfoley, takeshi-mir-w, samm0ss, sidps and 69 more
Metadata
Metadata
Assignees
Labels
plugin: monkeypatchrelated to the monkeypatch builtin pluginrelated to the monkeypatch builtin plugintype: docsdocumentation improvement, missing or needing clarificationdocumentation improvement, missing or needing clarification