Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
QMalcolm committed Oct 21, 2024
1 parent 3600753 commit a20bf51
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand All @@ -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)

0 comments on commit a20bf51

Please sign in to comment.