mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-02 12:44:15 +03:00
chore: fix tests
This commit is contained in:
parent
d09177d218
commit
319d569ad8
|
@ -3,9 +3,9 @@ from ..deprecated import warn_deprecation
|
|||
|
||||
|
||||
def test_warn_deprecation(mocker):
|
||||
mocker.patch.object(deprecated.warnings, "warn")
|
||||
mocker.patch.object(deprecated, "warn")
|
||||
|
||||
warn_deprecation("OH!")
|
||||
deprecated.warnings.warn.assert_called_with(
|
||||
deprecated.warn.assert_called_with(
|
||||
"OH!", stacklevel=2, category=DeprecationWarning
|
||||
)
|
||||
|
|
|
@ -9,6 +9,5 @@ def test_resolve_only_args(mocker):
|
|||
return root, args
|
||||
|
||||
wrapped_resolver = resolve_only_args(resolver)
|
||||
assert deprecated.warn_deprecation.called
|
||||
result = wrapped_resolver(1, 2, a=3)
|
||||
assert result == (1, {"a": 3})
|
||||
|
|
Loading…
Reference in New Issue
Block a user