TobikoData / sqlmesh

Efficient data transformation and modeling framework that is backwards compatible with dbt.
https://sqlmesh.com
Apache License 2.0
1.65k stars 147 forks source link

Chore: Reorganize engine adapter integration tests #3188

Closed erindru closed 3 days ago

erindru commented 4 days ago

Currently, in order to write an integration test against one of the engines, it needs to be tacked on to test_integration.py.

This file is starting to get a bit unwieldy:

This PR makes the following changes:

The goal here is to set the foundation for breaking these up further in future. Tests affecting all adapters can stay in test_integration.py and then tests for a specific database can be put in test_integration_<database>.py.

The immediate motivation was needing somewhere to put tests for the upcoming partition management logic in the Athena and Postgres adapters but these changes also give the option of moving eg the pyspark tests out of the main file and into a Spark-specific area