Skip to content

Commit

Permalink
disable dbt tests for athena iceberg
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp committed Oct 14, 2023
1 parent 4692e37 commit 10131e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions tests/load/pipeline/test_dbt_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ def test_run_jaffle_package(destination_config: DestinationTestConfiguration, db
@pytest.mark.parametrize("destination_config", destinations_configs(default_sql_configs=True), ids=lambda x: x.name)
def test_run_chess_dbt(destination_config: DestinationTestConfiguration, dbt_venv: Venv) -> None:
from docs.examples.chess.chess import chess
if not destination_config.supports_dbt:
pytest.mark.skip("dbt is not supported for this destination configuration")

# provide chess url via environ
os.environ["CHESS_URL"] = "https://api.chess.com/pub/"
Expand Down Expand Up @@ -95,6 +97,8 @@ def test_run_chess_dbt(destination_config: DestinationTestConfiguration, dbt_ven
@pytest.mark.parametrize("destination_config", destinations_configs(default_sql_configs=True), ids=lambda x: x.name)
def test_run_chess_dbt_to_other_dataset(destination_config: DestinationTestConfiguration, dbt_venv: Venv) -> None:
from docs.examples.chess.chess import chess
if not destination_config.supports_dbt:
pytest.mark.skip("dbt is not supported for this destination configuration")

# provide chess url via environ
os.environ["CHESS_URL"] = "https://api.chess.com/pub/"
Expand Down
3 changes: 2 additions & 1 deletion tests/load/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class DestinationTestConfiguration:
extra_info: Optional[str] = None
supports_merge: bool = True # TODO: take it from client base class
force_iceberg: bool = False
supports_dbt: bool = True

@property
def name(self) -> str:
Expand Down Expand Up @@ -110,7 +111,7 @@ def destinations_configs(
destination_configs += [DestinationTestConfiguration(destination=destination) for destination in SQL_DESTINATIONS if destination != "athena"]
# athena needs filesystem staging, which will be automatically set, we have to supply a bucket url though
destination_configs += [DestinationTestConfiguration(destination="athena", supports_merge=False, bucket_url=AWS_BUCKET)]
destination_configs += [DestinationTestConfiguration(destination="athena", staging="filesystem", file_format="parquet", bucket_url=AWS_BUCKET, force_iceberg=True, supports_merge=False, extra_info="iceberg")]
destination_configs += [DestinationTestConfiguration(destination="athena", staging="filesystem", file_format="parquet", bucket_url=AWS_BUCKET, force_iceberg=True, supports_merge=False, supports_dbt=False, extra_info="iceberg")]

if default_vector_configs:
# for now only weaviate
Expand Down

0 comments on commit 10131e4

Please sign in to comment.