mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-02-22 14:30:33 +03:00
7 lines
211 B
Python
7 lines
211 B
Python
from asgiref.sync import async_to_sync
|
|
|
|
|
|
def assert_async_result_equal(schema, query, result, **kwargs):
|
|
async_result = async_to_sync(schema.execute_async)(query, **kwargs)
|
|
assert async_result == result
|