mirror of
https://github.com/graphql-python/graphene.git
synced 2025-05-03 07:53:41 +03:00
remove pytest-mock
This commit is contained in:
parent
d90d65cafe
commit
82136f1c07
|
@ -5,8 +5,8 @@ from ..deprecated import deprecated as deprecated_decorator
|
|||
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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user