Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions graphene/utils/tests/test_deprecated.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from ..deprecated import warn_deprecation


def test_warn_deprecation(mocker):
mocker.patch.object(deprecated.warnings, "warn")
def test_warn_deprecation(monkeypatch):
monkeypatch.setattr(deprecated.warnings, "warn")

warn_deprecation("OH!")
deprecated.warnings.warn.assert_called_with(
Expand Down