mirror of
				https://github.com/graphql-python/graphene-django.git
				synced 2025-11-04 09:57:53 +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
 |