mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-15 11:00:38 +03:00
13 lines
276 B
Python
13 lines
276 B
Python
from ..resolve_only_args import resolve_only_args
|
|
|
|
|
|
def test_resolve_only_args():
|
|
|
|
def resolver(*args, **kwargs):
|
|
return kwargs
|
|
|
|
my_data = {'one': 1, 'two': 2}
|
|
|
|
wrapped = resolve_only_args(resolver)
|
|
assert wrapped(None, my_data, None, None) == my_data
|