Skip to content

Commit

Permalink
fix error in test_records.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pekasen committed Jan 22, 2025
1 parent 50d5ee9 commit 1388e93
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_Record.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_splitting_record():

record = Record(payload, Path())
records = record.split("key")
assert len(records) == 3
assert len(list(records)) == 3
for _record_ in records:
assert _record_.uuid
assert _record_.processed_at
Expand All @@ -57,7 +57,7 @@ def test_splitting_record_with_children_ids():

record = Record(payload, Path())
records = record.split("key", id_key="id")
assert len(records) == 3
assert len(list(records)) == 3
for n, _record_ in enumerate(records, 1):
assert _record_.uuid == n
assert _record_.processed_at
Expand All @@ -78,14 +78,14 @@ def test_splitting_record_without_key():

record = Record(payload, Path())
records = record.split("key2")
assert len(records) == 0
assert len(list(records)) == 0


def test_splitting_record_without_payload():
"""Should not split a Record without a payload."""
record = Record({}, Path())
records = record.split("key")
assert len(records) == 0
assert len(list(records)) == 0


def test_logging_record():
Expand Down

0 comments on commit 1388e93

Please sign in to comment.