1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] AWS Athena with python - is it possible to mock with moto while still testing the sql?

Discussão em 'Python' iniciado por Stack, Setembro 16, 2024.

  1. Stack

    Stack Membro Participativo

    My code performs sql queries on Athena using boto3.

    I want to be able to test the entire functionality, but avoiding the actual access to athena. I need the data to be fetched based on the query string my code sends and the actual data I put in mocked s3 as part of the tests setup.

    Has anyone ever done something like this?

    All examples I see online are not really testing sql logic, but rather use predefined query results to be returned when starting Athena queries.

    Continue reading...

Compartilhe esta Página