From a20bf5158318026190a8159eada66d51c8fbbc5f Mon Sep 17 00:00:00 2001 From: Quigley Malcolm Date: Mon, 21 Oct 2024 15:02:53 -0700 Subject: [PATCH] Fix linting --- .../tests/adapter/incremental/test_incremental_microbatch.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dbt-tests-adapter/dbt/tests/adapter/incremental/test_incremental_microbatch.py b/dbt-tests-adapter/dbt/tests/adapter/incremental/test_incremental_microbatch.py index 2408b1a5..d35dee8c 100644 --- a/dbt-tests-adapter/dbt/tests/adapter/incremental/test_incremental_microbatch.py +++ b/dbt-tests-adapter/dbt/tests/adapter/incremental/test_incremental_microbatch.py @@ -61,6 +61,7 @@ def assert_row_count(self, project, relation_name: str, expected_row_count: int) assert len(result) == expected_row_count, f"{relation_name}:{pformat(result)}" + class BaseTestMicrobatchOn(BaseMicrobatch): @pytest.fixture(scope="class") def project_config_update(self): @@ -101,6 +102,7 @@ def test_run_with_event_time(self, project, insert_two_rows_sql): run_dbt(["run", "--select", "microbatch_model"]) self.assert_row_count(project, "microbatch_model", 5) + class BaseTestMicrobatchOff(BaseMicrobatch): @pytest.fixture(scope="class") def project_config_update(self): @@ -109,8 +111,7 @@ def project_config_update(self): "require_builtin_microbatch_strategy": False, } } - + def test_run_with_event_time(self, project): with patch_microbatch_end_time("2020-01-03 13:57:00"): run_dbt(["run"], expect_pass=False) -