Skip to content

Commit

Permalink
Merge pull request #8297 from pytest-dev/monkeypatch-docs
Browse files Browse the repository at this point in the history
doc: Point out two-argument form of monkeypatch.setattr
  • Loading branch information
bluetech committed Feb 4, 2021
2 parents 275174e + f0f19aa commit 3907856
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/en/monkeypatch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ functionality in tests:
.. code-block:: python
monkeypatch.setattr(obj, name, value, raising=True)
monkeypatch.setattr("somemodule.obj.name", value, raising=True)
monkeypatch.delattr(obj, name, raising=True)
monkeypatch.setitem(mapping, name, value)
monkeypatch.delitem(obj, name, raising=True)
Expand Down

0 comments on commit 3907856

Please sign in to comment.