From 2a1fef18caee34089c80072b1dc7da5ade52f450 Mon Sep 17 00:00:00 2001 From: Quigley Malcolm Date: Wed, 16 Oct 2024 16:12:53 -0500 Subject: [PATCH] Fix lint --- dbt-tests-adapter/dbt/tests/adapter/basic/files.py | 4 +++- .../dbt/tests/adapter/basic/test_incremental.py | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/dbt-tests-adapter/dbt/tests/adapter/basic/files.py b/dbt-tests-adapter/dbt/tests/adapter/basic/files.py index d08f9d97..d0253a53 100644 --- a/dbt-tests-adapter/dbt/tests/adapter/basic/files.py +++ b/dbt-tests-adapter/dbt/tests/adapter/basic/files.py @@ -221,4 +221,6 @@ ephemeral_view_sql = config_materialized_view + model_ephemeral ephemeral_table_sql = config_materialized_table + model_ephemeral incremental_sql = config_materialized_incremental + model_incremental -incremental_invalid_strategy_sql = config_materialized_incremental_invalid_strategy + model_incremental +incremental_invalid_strategy_sql = ( + config_materialized_incremental_invalid_strategy + model_incremental +) diff --git a/dbt-tests-adapter/dbt/tests/adapter/basic/test_incremental.py b/dbt-tests-adapter/dbt/tests/adapter/basic/test_incremental.py index df445335..af0584b8 100644 --- a/dbt-tests-adapter/dbt/tests/adapter/basic/test_incremental.py +++ b/dbt-tests-adapter/dbt/tests/adapter/basic/test_incremental.py @@ -85,6 +85,7 @@ def test_incremental_not_schema_change(self, project): assert run_result == RunStatus.Success + class BaseIncrementalBadStrategy: @pytest.fixture(scope="class") def project_config_update(self): @@ -92,12 +93,14 @@ def project_config_update(self): @pytest.fixture(scope="class") def models(self): - return {"incremental.sql": files.incremental_invalid_strategy_sql,} + return { + "incremental.sql": files.incremental_invalid_strategy_sql, + } @pytest.fixture(scope="class") def seeds(self): return {"base.csv": files.seeds_base_csv, "added.csv": files.seeds_added_csv} - + def test_incremental_invalid_strategy(self, project): # seed command results = run_dbt(["seed"])