Skip to content

Commit

Permalink
Handle missing batch_start
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeatty10 committed Jan 17, 2025
1 parent fe73096 commit 65a1db0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit/materializations/incremental/test_microbatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,7 @@ def test_truncate_timestamp(self, timestamp, batch_size, expected_timestamp):
@pytest.mark.parametrize(
"batch_size,start_time,expected_formatted_start_time",
[
(BatchSize.year, None, ""),
(BatchSize.year, datetime(2020, 1, 1, 1), "20200101"),
(BatchSize.month, datetime(2020, 1, 1, 1), "20200101"),
(BatchSize.day, datetime(2020, 1, 1, 1), "20200101"),
Expand All @@ -617,6 +618,7 @@ def test_batch_id(self, batch_size, start_time, expected_formatted_start_time):
@pytest.mark.parametrize(
"batch_size,batch_start,expected_formatted_batch_start",
[
(BatchSize.year, None, ""),
(BatchSize.year, datetime(2020, 1, 1, 1), "20200101"),
(BatchSize.month, datetime(2020, 1, 1, 1), "20200101"),
(BatchSize.day, datetime(2020, 1, 1, 1), "20200101"),
Expand Down

0 comments on commit 65a1db0

Please sign in to comment.