mirror of
https://github.com/graphql-python/graphene.git
synced 2025-04-26 04:23:40 +03:00
14 lines
357 B
Python
14 lines
357 B
Python
from .. import deprecated
|
|
from ..resolve_only_args import resolve_only_args
|
|
|
|
|
|
def test_resolve_only_args(mocker):
|
|
mocker.patch.object(deprecated, "warn_deprecation")
|
|
|
|
def resolver(root, **args):
|
|
return root, args
|
|
|
|
wrapped_resolver = resolve_only_args(resolver)
|
|
result = wrapped_resolver(1, 2, a=3)
|
|
assert result == (1, {"a": 3})
|