Skip to content

Commit

Permalink
Test records with version
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Jul 13, 2024
1 parent 8f390f6 commit 20a75cd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/_singerlib/test_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@ def test_record_message_time_extracted_to_utc():
assert record.time_extracted == datetime.datetime(2021, 1, 1, 9, tzinfo=UTC)


def test_record_message_with_version():
record = singer.RecordMessage(
stream="test",
record={"id": 1, "name": "test"},
version=1614556800,
)
assert record.version == 1614556800


def test_schema_message():
schema = singer.SchemaMessage(
stream="test",
Expand Down

0 comments on commit 20a75cd

Please sign in to comment.