mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-02-23 07:00:59 +03:00
7 lines
191 B
Python
7 lines
191 B
Python
|
from asgiref.sync import async_to_sync
|
||
|
|
||
|
|
||
|
def assert_async_result_equal(schema, query, result):
|
||
|
async_result = async_to_sync(schema.execute_async)(query)
|
||
|
assert async_result == result
|