fix: увеличен лимит поля
This commit is contained in:
1 parent
ba2308c576
commit
a3593e2cf1
8 files changed
+65
-5
No files matched your search
@@ -65,6 +65,16 @@ async def test_load_offset_without_header_falls_back_to_rows(mock_s3):
|
||||
assert await store.load("input/data.csv") == Checkpoint(rows_processed=42)
|
||||
|
||||
|
||||
async def test_load_checkpoint_with_null_offset_falls_back(mock_s3):
|
||||
"""null в byte_offset не должен ронять загрузку чекпоинта."""
|
||||
mock_s3.read_file.return_value = (
|
||||
b'{"rows_processed": 42, "byte_offset": null, "header": ["id"]}'
|
||||
)
|
||||
store = S3CheckpointStore(mock_s3, "_state/checkpoints/")
|
||||
|
||||
assert await store.load("input/data.csv") == Checkpoint(rows_processed=42)
|
||||
|
||||
|
||||
async def test_load_corrupted_checkpoint_returns_empty(mock_s3):
|
||||
mock_s3.read_file.return_value = b"not-a-json"
|
||||
store = S3CheckpointStore(mock_s3, "_state/checkpoints/")
|
||||
|
||||
Reference in new issue
Block a user