skip to Main Content

How to mock Athena query results values with Moto3 for a specific table? – Amazon Web Sevices

I am using pytest and moto3 to test some code similar to this: response = athena_client.start_query_execution( QueryString='SELECT * FROM xyz', QueryExecutionContext={'Database': myDb}, ResultConfiguration={'OutputLocation': someLocation}, WorkGroup=myWG ) execution_id = response['QueryExecutionId'] if response['QueryExecution']['Status']['State'] == 'SUCCEEDED': response = athena_client.get_query_results( QueryExecutionId=execution_id ) results =…

VIEW QUESTION
Back To Top
Search